Page 1 of 2
FYI: PHP 5.3 now required for all of my modules.
Posted: Tue Mar 05, 2013 4:13 pm
by calguy1000
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
UPDATE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
All of my modules will now require PHP 5.4!
Read http://forum.cmsmadesimple.org/viewtopi ... =7&t=71719
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Some of you may have noticed that the series of modules that were released on Sunday now require PHP 5.3.
This is because: PHP 5.2 reached its end of life over 2 years ago. PHP 5.3 has been around since 2009, and PHP 5.4 is already available and maturing, Also, there are numerous features of PHP 5.3 that I want to use in my modules.
Unfortunately, ModuleManager does not test for php versions, or other system requirements, only the basic module dependencies and CMSMS versions. So people upgrading blindly may have difficulties.
If your website is not running PHP 5.3.5 or greater, I suggest you contact your host and find a way to get a newer version of PHP as soon as possible.
Thanks for your time.
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Mon Apr 01, 2013 5:43 am
by pixelita
I just snapped to something. When I was having those weird problems with my CMSMS client testbed site with CMSMS dropping everything ahead of the <head> tag, I didn't know what to make of it. Now that I am installing the site on the client's server (yes, it's finally going live!), I see that his server is still using PHP5.2.9 -- which is weird because he has Arvixe hosting, which is supposed to be very friendly to CMSMS -- and his Product pages (using CGeCommerce) are exhibiting that exact same behavior. And I just checked and my testbed server (where I was having the problems) is also running PHP5.2; and I moved it to another server which is running PHP5.3 and the problem disappeared. I put in a request to Arvixe to upgrade their servers to PHP5.3, especially if they are going to tout themselves as being CMSMS friendly hosts.

Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Mon Apr 01, 2013 5:52 am
by calguy1000
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Mon Apr 01, 2013 6:13 am
by pixelita
Well, that didn't work. It's throwing out 500 Internal Server Errors now.

Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Mon Apr 01, 2013 1:00 pm
by Rolf
I have in the .htaccess file in /public_html/:
Code: Select all
AddHandler application/x-httpd-php53 .php
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Mon Apr 01, 2013 1:07 pm
by pixelita
Yes, that is what I had. Threw out the 500 internal server error so I took it out. There are other issues with the live server causing some modules to fail (no GS libraries, no CURL); hope to have fixed today.

Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Wed Apr 03, 2013 7:39 am
by pixelita
We have PHP 5.3.x and I am now getting THIS error when I tried to upgrade Products, CGExtensions and CGSimple Smarty (Products was the only one of the three that seemed to be successful):
Warning: file_get_contents(__DIR__/help.inc) [function.file-get-contents]: failed to open stream: No such file or directory in /home/@@@@@/public_html/modules/CGExtensions/CGExtensions.module.php on line 260
Any ideas what's up now? I really would love to get this darn site operative.
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:09 pm
by fearmydesign
So I had my host provider upgrade all 4 VPSs to PHP 5.4.13
Now I am getting 500 Internal Server Errors on many sites... :-/
I tried adding the line of code provided here to my htaccess but didn't work
Code: Select all
AddHandler application/x-httpd-php53 .php
What's weird is that I am able to log into the backend:
www.artelye.com/admin or
www.marylandgranite.com/admin
seems to be working fine... but why are the main pages not showing when I go to these domains..! (btw I have several sites down like this).
Any suggestions I can try? I am with tech support on the line already, but trying to figure this out. Thank you
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:14 pm
by calguy1000
Now I am getting 500 Internal Server Errors on many sites... :-/
Means that there is an error someplace. Look at your logs
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:20 pm
by pixelita
Be sure you clear your caches out; if you cannot access the backend via the CMSMS Dashboard, go to the /tmp/ directory and clear the templates and cache folders out. I had forgotten that little tip until Goran pointed it out to me. And the long and short was that someone (we suspect Client) mucked around in cPanel and switched the site back from 5.3.x to 5.2.x. So don't overlook a chance that they might have done something, if they have dashboard and cpanel access.

Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:21 pm
by pixelita
Be sure you clear your caches out; if you cannot access the backend via the CMSMS Dashboard, go to the /tmp/ directory (via FTP or the cPanel File Manager) and clear the templates and cache folders out. I had forgotten that little tip until Goran pointed it out to me. And the long and short was that someone (we suspect Client) mucked around in cPanel and switched the site back from 5.3.x to 5.2.x. So don't overlook a chance that they might have done something, if they have dashboard and cpanel access.

Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:23 pm
by fearmydesign
calguy1000 wrote:Now I am getting 500 Internal Server Errors on many sites... :-/
Means that there is an error someplace. Look at your logs
Yes, and I am trying to fix it. I have looked at the logs but not sure I understand what this measn for example:
Code: Select all
[Thu Apr 11 12:14:56 2013] [error] [client 70.34.92.174] PHP Deprecated: Comments starting with '#' are deprecated in /home/artelye/public_html/php.ini on line 1129 in Unknown on line 0, referer: http://www.artelye.com/index_main.html
Any suggestions on how I can fix this?
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:27 pm
by fearmydesign
calguy1000 wrote:Now I am getting 500 Internal Server Errors on many sites... :-/
Means that there is an error someplace. Look at your logs
Yes, and I am trying to fix it. I have looked at the logs but not sure I understand what this measn for example:
Code: Select all
[Thu Apr 11 12:14:56 2013] [error] [client 70.34.92.174] PHP Deprecated: Comments starting with '#' are deprecated in /home/artelye/public_html/php.ini on line 1129 in Unknown on line 0, referer: http://www.artelye.com/index_main.html
Any suggestions on things I can try?
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:28 pm
by pixelita
Sorry for the double post; I ironically got a 500 internal server error when I submitted this.
It is my understanding that the shebang (#) is deprecated only in php.ini files, so use // instead.
Re: FYI: PHP 5.3 now required for all of my modules.
Posted: Thu Apr 11, 2013 4:39 pm
by fearmydesign
pixelita wrote:Sorry for the double post; I ironically got a 500 internal server error when I submitted this.
It is my understanding that the shebang (#) is deprecated only in php.ini files, so use // instead.
I had this same problem...