bigbob2 Posted April 15, 2015 Share Posted April 15, 2015 I purchased a template from Template Monster which I have done several times in the past. I installed it on my hosted site and and ran the installation. It confirmed that everything was installed correctly, however I can get to the admin not problem, but if I go to the main page, I get the error: Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. I have contacted their support who told me: You are facing server related issue. Please, contact your hosting provider, asking to set correct permissions to files/folders on your server. You can provide the following error log: "NetworkError: 500 Internal Server Error So I contacted my host and they changed my .htaccess to htaccess.bak and said that if that did not fix it I would need to re-upload all my files. It didn't help, so I reuploaded all the files and still the same. I was wondering if anyone could tell from my error log what the problem could be. I have just copied over one event from the error log although it covers many errors: [15-Apr-2015 03:59:25 UTC] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/modules/boxes/' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 86 [15-Apr-2015 03:59:25 UTC] PHP Warning: include(includes/modules/boxes/.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 87 [15-Apr-2015 03:59:25 UTC] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/modules/boxes/.php' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 87 [15-Apr-2015 03:59:25 UTC] PHP Fatal error: Class name must be a valid object or a string in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 90 [15-Apr-2015 03:59:30 UTC] PHP Warning: include(/home/trigin2/public_html/catalog/includes/languages/english/modules/boxes) [<a href='function.include'>function.include</a>]: failed to open stream: No such device in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 86 [15-Apr-2015 03:59:30 UTC] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/modules/boxes/' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 86 [15-Apr-2015 03:59:30 UTC] PHP Warning: include(includes/modules/boxes/.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 87 [15-Apr-2015 03:59:30 UTC] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/modules/boxes/.php' for inclusion (include_path='.:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php') in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 87 [15-Apr-2015 03:59:30 UTC] PHP Fatal error: Class name must be a valid object or a string in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 90 I have spent all day googling and I am yet to find anything that helps my situation :( Thanks for your help Kevin Link to comment Share on other sites More sharing options...
nigelt74 Posted April 15, 2015 Share Posted April 15, 2015 Ok I can't help you, but have you confirmed that the files/folders are actually there includes/languages/english/modules/boxes/ Is this a new site or an old one you are updating What version of OScommerce do you have? What version of PHP is running on your server What versions of OSCommerce does your template support Link to comment Share on other sites More sharing options...
clustersolutions Posted April 15, 2015 Share Posted April 15, 2015 500 usually related to file permission for me... Link to comment Share on other sites More sharing options...
Bob Terveuren Posted April 15, 2015 Share Posted April 15, 2015 Nigel has pointed the way to make a start - there's some PHP warnings in there that the code cannot 'see' the boxes.php files and then the kiler: [15-Apr-2015 03:59:25 UTC] PHP Fatal error: Class name must be a valid object or a string in /home/trigin2/public_html/catalog/includes/classes/osc_template.php on line 90 the warnings are missing an actual filename Warning: include(includes/modules/boxes/.php) so that may be the root cause - try going to admin -> modules -> boxes and remove all the modules there (don't just disable - pull the lot out). If that works then start replacing them one at a time & see if you can find the 'baddie' that way Link to comment Share on other sites More sharing options...
MrPhil Posted April 15, 2015 Share Posted April 15, 2015 1. Did you edit any files while installing? If so, check that you didn't leave a blank (empty) line at the beginning or end of a file. 2. Check the file permissions. Many hosts no longer allow "world writable" permissions such as 666 or 777. Usually 644 and 755 are sufficient. If that doesn't do it, there are many things that can cause a 500 error, which may or may not be related to the other error messages you're getting. Link to comment Share on other sites More sharing options...
bigbob2 Posted April 16, 2015 Author Share Posted April 16, 2015 Thanks for all your ideas. After going through the admin and navigating to the boxes menu, the admin page popped up the same error screen as above and now I cannot access the admin menu either. I am almost at the point of throwing my computer out the window :( So I have decided to back track and delete the entire site and database and start with a new install. I will keep you posted. Cheers Kev Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.