FYI: PHP 5.3 now required for all of my modules.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

FYI: PHP 5.3 now required for all of my modules.

Post 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.
Last edited by Rolf on Wed Apr 08, 2015 10:59 am, edited 1 time in total.
Reason: Added 5.4 update
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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. :)
Submit your site to the We Love CMSMS showcase
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FYI: PHP 5.3 now required for all of my modules.

Post by calguy1000 »

Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post by pixelita »

Well, that didn't work. It's throwing out 500 Internal Server Errors now. :(
Submit your site to the We Love CMSMS showcase
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: FYI: PHP 5.3 now required for all of my modules.

Post by Rolf »

I have in the .htaccess file in /public_html/:

Code: Select all

AddHandler application/x-httpd-php53 .php
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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. :)
Submit your site to the We Love CMSMS showcase
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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.
Submit your site to the We Love CMSMS showcase
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: FYI: PHP 5.3 now required for all of my modules.

Post by calguy1000 »

Now I am getting 500 Internal Server Errors on many sites... :-/
Means that there is an error someplace. Look at your logs
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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. :)
Submit your site to the We Love CMSMS showcase
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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. :)
Submit your site to the We Love CMSMS showcase
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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?
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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?
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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.
Submit your site to the We Love CMSMS showcase
User avatar
fearmydesign
Power Poster
Power Poster
Posts: 363
Joined: Sun Feb 28, 2010 10:54 pm

Re: FYI: PHP 5.3 now required for all of my modules.

Post 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...
Locked

Return to “Modules/Add-Ons”