• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Thu Mar 28, 2019 8:08 pm 
Offline
Forum Members
Forum Members

Joined: Fri Apr 09, 2010 11:32 pm
Posts: 67
Hello forists,

I had updated the site in question to 2.1.5 in oct 2016, and it worked smoothly. Without doing anything with the site, it went down to error 500 (internal server error) two days ago. Also, the admin space yields the same message. phpinfo() can be run from a small file, so php does still work somehow.

Now I am scratching my head and am lacking any idea, where to look. Maybe the provider changed some php-parameters?

I am thankful for any constructive hint where to look.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Fri Mar 29, 2019 1:00 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 760
Location: Victoria, BC
A 500 error will create a log entry. Check your PHP error logs.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Fri Mar 29, 2019 9:48 pm 
Offline
Forum Members
Forum Members

Joined: Fri Apr 09, 2010 11:32 pm
Posts: 67
Thanks for the answer.
the error log is full with many lines with the following message:

Got error 'PHP message: PHP Fatal error: Class 'PHPMailer' not found in /var/www/vhosts/roswitha-jacobi.de/httpdocs/lib/classes/class.cms_mailer.php on line 62\n'

Which is the same as I get when switching debug to 'true' in config.php.

in class.cms_mailer.php we find lines 59-62:
Code:
    $dir = dirname(__DIR__).'/phpmailer/';
    require_once($dir.'/PHPMailerAutoload.php');

    $this->_mailer = new PHPMailer($exceptions);


This files does of course exist in the place where it should be, and I suppose it should somehow provide the class PHPMailer. This seems to be not the case for an unknown reason.

Does this make a bell ring at anybody reading this?

I suspect the provider having changed either the webserver version or some webserver parameters, but i am not sure.

Greetings from Berlin...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Fri Mar 29, 2019 10:42 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 760
Location: Victoria, BC
Sounds to me like mod_security or antivirus.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Sun Mar 31, 2019 9:18 pm 
Offline
Forum Members
Forum Members

Joined: Fri Apr 09, 2010 11:32 pm
Posts: 67
Thx.
I think I have no possibility to check this.
Interestingly, the following php yields an error 500 as well:
Code:
<?php
  $version = apache_get_version();
  echo "$version\n";
?>


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Mon Apr 01, 2019 12:09 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 760
Location: Victoria, BC
If your host won't tell you whether mod_security is installed or not, then find a new host.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Mon Apr 01, 2019 11:54 am 
Offline
Forum Members
Forum Members

Joined: Fri Apr 09, 2010 11:32 pm
Posts: 67
Find a new host - that's exactly what I am going to do.
Thx for the time.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: http error 500 with cmsms 2.1.5 and php version 5.6.4
PostPosted: Wed Apr 03, 2019 9:29 am 
Offline
Forum Members
Forum Members

Joined: Fri Apr 09, 2010 11:32 pm
Posts: 67
FYI: I copied the whole site to a new host and got the same 500 error. So I decided to delete all files except the uploads directory and do a clean installation from scratch. I fed in the database again, installed the gallery module and some javascript hacks I had done with thickbox and alas! it worked.
Then I tried and moved the whole thing back to the old provider, and it worked as well.
So it was not some server parameters, apache versions or antivirus software, but some php files must have been modified. Maybe a botched up hack.
For a moment, before I had jquery got working again, I had seen strange CSS on the site, with a lot of strange URLs and root: selectors in it, in the <head> section.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting