, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > User Help > General Support Requests > PHP 5.4

FlexCMS Support Forum


PHP 5.4
Started December 18, 2012 @ 7:51pm by phrawgh
Post Message 
phrawgh


Posts: 10
 
PHP 5.4December 18, 2012 @ 7:51pm
1and1.com is upgrading to php 5.4 in April. This may affect many flexcms users. Question: What, if anything, do we need to do to flexcms to prepare it. When I changed my php setting from 4 to 5.4 at 1and1 it appears not to work.
 
DCSun
Administrator



Posts: 625
 
December 18, 2012 @ 8:19pm
Hello,

FlexCMS 3.0 and later should be compatible with PHP 5. That said, through the minor (5.1, 5.2, etc) PHP releases there have been some changes in error handling and function depreciation that may produce undesired error messages and the like. And many of the larger hosting companies also seem to take pleasure in changing the way standard software (ie PHP) operates for whatever reason.

So lets approach it this way; What version of FlexCMS are you using? Can you be a little more specific about "it appears not to work" (error messages, etc)?


David


FlexCMS v3.2 Has Been Released!
 

Last Edit: December 18, 2012 @ 8:20pm by DCSun
phrawgh


Posts: 10
 
December 18, 2012 @ 8:27pm
FlexCMS v3.2.1

Installation Date:
February 14, 2012
License Level:
Professional

I am currently using 4. I am required to upgrade to 5.4 by 1 April. When I change to 5.4 in my host control panel I get a full page of errors. I can wait until no one is on the site and change it to 5.4. I'll copy/paste the errors here.

Thank you for you quick response!
 

Last Edit: December 18, 2012 @ 8:36pm by phrawgh
DCSun
Administrator



Posts: 625
 
December 18, 2012 @ 9:25pm
Depending on how they have it set up you may also be able to choose PHP versions by directory. If so, you could copy your files into another directory (actually all you likely need is index.php and settings.php) and play with it there until you're ready to make the changes live on the main site. Note that you'd be using the same database so don't make changes to any content, just the files.

I suspect it will be an easy fix, though, so you may be just fine working with the live files if you can find a bit of downtime.

Post a new message (don't modify your existing one above) with the errors so I'll get notified when you're back.


David


FlexCMS v3.2 Has Been Released!
 

Last Edit: December 18, 2012 @ 9:27pm by DCSun
phrawgh


Posts: 10
 
December 18, 2012 @ 10:07pm
Sorry, I know this is crazy. Here is what I get and the page loads way below it:


Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/19/d237457273/htdocs/online/index.php on line 181

Deprecated: Function split() is deprecated in /homepages/19/d237457273/htdocs/online/index.php on line 223



[Removed some of the repeated errors so this post isn't so long --DC]
 

Last Edit: December 20, 2012 @ 11:46am by DCSun
DCSun
Administrator



Posts: 625
 
December 19, 2012 @ 4:59pm
Ya those were the ones I was expecting, they should be easy fixes. Grab your index.php file and make a copy of it in case you need to go back to what you had before. Then make the following changes:

Line 14 should be this:
Code

error_reporting (E_ALL ^ E_NOTICE);
, change it to this:
Code

error_reporting (E_ALL & ~E_NOTICE & ~E_DEPRECATED);


Line 173 should be blank, add a few more blank lines in there and then add this somewhere in the blank space you created:
Code

// Suppress DateTime warnings
date_default_timezone_set(@date_default_timezone_get());


Let me know where that gets you.

David


FlexCMS v3.2 Has Been Released!
 
phrawgh


Posts: 10
 
December 26, 2012 @ 8:35pm
That apparently did the trick. If any errors pop up I'll let you know but looks good so far. Thanks David, you guys are the best.

Happy New year!
 
phrawgh


Posts: 10
 
January 8, 2013 @ 10:26pm
New error.

I get tons of these errors when I attempt to edit pages from the control panel. Just including one instance of each.

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 179

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'mon' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 213

The page still operates and functions.

Thanks again!
 
DCSun
Administrator



Posts: 625
 
January 21, 2013 @ 1:02pm
Sorry for the delay getting back to you. I've been trying to track this down but so far I haven't had much luck. There don't appear to have been any changes to that getdate function in recent PHP releases. You mentioned there were more error messages on that page, could you either provide them here if it's not ridiculously long or email them in a txt file to and I'll try to work it out for you. It's starting to sound like your host has done some weird stuff with their PHP implementation, but sadly that seems to be the new norm with big hosting companies these days.

David


FlexCMS v3.2 Has Been Released!
 
phrawgh


Posts: 10
 
January 21, 2013 @ 9:23pm
Hi David,

Those are all the errors, they just repeat over and over.

Here is the whole page, edit at your leisure:


Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'mday' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 154

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'year' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 169

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 179

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'hours' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 184

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'minutes' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 200

Warning: Illegal string offset 'mon' in /homepages/19/d237457273/htdocs/online/inc-core-admin-pages-edit.php on line 213
 

Last Edit: January 29, 2013 @ 8:25pm by phrawgh

Post Message 




Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.06253 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS