Class 'DateTimeZone' not found (PHP...

User 2587129 Photo


Registered User
9 posts

Hi there. I've been asked to create a form for a site on a server using PHP 5.1.1 and am getting the following error when submitting the form:

Fatal error: Class 'DateTimeZone' not found in e:\inetpub\esvc000300\newsletter-signup\fbapp\php\config.cls.php on line 372


I really need to get this form working quickly so am happy not have the time & date displayed as part of the success message, but not sure where to delete this from the files. Please note: I have already removed _form_results_ from the Confirmation message, however, am still getting the error message.

Assistance would be much appreciated.
User 2484360 Photo


Registered User
3,293 posts
Online Now

Hello Circey,

WFB requires that your server has PHP 5.3 or higher. If you are using 5.1.1 you will encounter errors. Normally if you contact the host they can upgrade your PHP for you. :)

You can find the server requirements for WFB here http://www.coffeecup.com/help/articles/ … m-builder/
User 2587129 Photo


Registered User
9 posts

I'm afraid that's not possible (long story), so now I have to find a work-around. I'm thinking that I'll host the form builder files on another server and simply add the path to the form button (the form is called "newsletter-signup"):
<a class='fb_iframe' href="http://clients.newserver.com/newsletter-signup/newsletter-signup.html">Sign Up</a>

I've also changed the script path on newsletter-signup.php as follows:
$scriptpath = 'http://clients.newserver.com/newsletter-signup';


This has worked to a degree: the form appears as required, but on submit the form becomes blank and nothing happens. Any ideas?
User 2147626 Photo


Ambassador
2,958 posts

Try hosting the form on your FREE S-Drive account and see if that works? Just a thought . . .
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2587129 Photo


Registered User
9 posts

Thanks Gunsmoke, I'll sign up to s-drive and give it a go.

However, I've found this in utilities.inc.php:
// load PHP4 compatibility functions (from the PEAR::PHP_Compat package) if needed
// 5.1 might not have the json extension installed!
if( strcmp( PHP_VERSION, '5.2' ) < 0 ) {
include 'fbapp/inc/php4compat.inc.php';
}

So, shouldn't the form be working anyway?
User 2587129 Photo


Registered User
9 posts

The form works fine hosted by S-Drive, but I need to edit the html/css files to use a non-standard font to fit in with the website style/fonts. I don't seem to be able to access the files on the S-Drive to do this. When I click on Storage, it tells me I have no files on there.
User 103173 Photo


VP of Software Development
0 posts

circey wrote:
The form works fine hosted by S-Drive, but I need to edit the html/css files to use a non-standard font to fit in with the website style/fonts. I don't seem to be able to access the files on the S-Drive to do this. When I click on Storage, it tells me I have no files on there.

You can do that as well. Go to the File Menu > Export > Automated Form Processing. This will allow you to access all the HTML/CSS. Once you make those changes, upload them to S-Drive.
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 2587129 Photo


Registered User
9 posts

Thanks Scott, but I can't see how to upload the edited files to S-Drive to replace the existing published form files.
User 103173 Photo


VP of Software Development
0 posts

circey wrote:
Thanks Scott, but I can't see how to upload the edited files to S-Drive to replace the existing published form files.

You do that with Direct FTP. Just upload these files to where you website is located. The PHP files are hidden from view so all that you are uploading is just the HTML/CSS and JS files.
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 2587129 Photo


Registered User
9 posts

I have already tried uploading the WFB files to the client's server which is running PHP 5.1, so this is apparently not meeting the PHP 5.3 requirements of WFB.

Hence my need to host the form elsewhere. I had tried to host the form on my own server, but once the form was submitted, the form disappeared and I was left with a blank modal/colorbox window.

I then tried using S-Drive, but am unable to edit the CSS and HTML to use the custom fonts. In addition, I'm using a Mac and there is no DirectFTP available for Mac.

Really, my preferred solution here would be to use my own hosting, but as I have stated above, once the form is submitted I'm left with a blank modal/colorbox window. Do you have any suggestions to fix this?

I'm wondering also about this:

However, I've found this in utilities.inc.php:
// load PHP4 compatibility functions (from the PEAR::PHP_Compat package) if needed
// 5.1 might not have the json extension installed!
if( strcmp( PHP_VERSION, '5.2' ) < 0 ) {
include 'fbapp/inc/php4compat.inc.php';
}
So, shouldn't the form be working anyway?


Many thanks.

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.