Error on line 341 of config.cls.php -...

User 627179 Photo


Registered User
5 posts

Hello,
I have uploaded a form manually to my server, as i am not using the S drive. I am also using an smtp server and not local host to send email.

When I press the submit button on my form I get the following error.


Fatal error: Call to undefined method Config::SetErrors() in ..\contact\fbapp\php\config.cls.php on line 341


Line 340
if( $this->config == NULL ) {
Line 341
$this->SetErrors( array( array( 'err' => 'Failed to read or decode form configuration.' ) ) );
Line 342
writeErrorLog( 'Couldn\'t decode:', ($this->sdrive ? CONFIG_FILE_SDRIVE : CONFIG_FILE) );
Line 343
return false;
Line 344
}


Any ideas what could be causing me to get this?

Server configuration

PHP Version: 5.2.8 (should be 5.1 or newer)

File upload configuration:

File Uploads: On
File Uploads Max Size: 2M
Post Max Size: 8M

PHP Sessions:

Cool, sessions are usable!
User 103173 Photo


VP of Software Development
0 posts

What is the URL to the form?
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 627179 Photo


Registered User
5 posts

http://www.theapartmentgallery.com/TempNewWeb/www/Properties/Brandywine/Brandywine_Index.html

It is the contact us link on the right of the webpage under Sidebar Menu right above the Affiliates section
User 103173 Photo


VP of Software Development
0 posts

Justin Quigley wrote:
http://www.theapartmentgallery.com/TempNewWeb/www/Properties/Brandywine/Brandywine_Index.html

It is the contact us link on the right of the webpage under Sidebar Menu right above the Affiliates section

It looks like a good majority of the PHP files are missing on your server. I cannot even access the primary servertest script:

http://www.theapartmentgallery.com/Temp … ertest.php
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 184085 Photo


Ambassador
1,707 posts

I think your link to the form is ../../contact/contact.html but shouldn't it be ../../contact/contact/contact.html ?
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 103173 Photo


VP of Software Development
0 posts


Thanks. I think you are on an extremely old version of the software. The server test should show the build number but it does not. I would suggest you make sure you have version 2.1 Build 4652 installed first.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 627179 Photo


Registered User
5 posts

Ok, so i updated to the latest version and now I receive a Thank you for your submission email which goes into my junk email, but then i get an error right above the contact info saying this:

(I added the email i was sending from to my bypassedsenders on my exchange server, but still receive this error. I noticed that the hashes were incorrect, but where do i correct these, i did a control f on the tags on all pages but nothing shows up.)

Your form could not be submitted for the following reason(s):
•Warning: [ err 2/line 45C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact\fbapp\inc\utilities.inc.php] error_log(C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
•Warning: [ err 2/line 84C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact\fbapp\inc\utilities.inc.php] error_log(C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
•Warning: [ err 2/line 45C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact\fbapp\inc\utilities.inc.php] error_log(C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
•Warning: [ err 2/line 84C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact\fbapp\inc\utilities.inc.php] error_log(C:\Webdata\mgmweb\apartmentgallery.com\TempNewWeb\www\contact/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
•SMTP Error: Data not accepted.<p>SMTP server error: 5.7.1 This has been contented as SPAM </p>
User 103173 Photo


VP of Software Development
0 posts

You need to log into your server and change the permissions of the Storage folder to 755 for that folder and all folders under it.

Since you are hosted on a Windows server, you may have to customize your SMTP settings as well:

http://www.coffeecup.com/help/articles/ … m-builder/
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 627179 Photo


Registered User
5 posts

That fixed all of the permission errors by doing the 755 on the storage folder. I already setup the user config php. Sometimes i get it sometimes i don't. I probably have something wrong in the php or the server. I should be good from here. Thanks for all of your help!

:D

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.