J Green Posted October 13, 2012 Share Posted October 13, 2012 500 - Internal Server Error This is a temporary server error. Please try to reload the webpage later. If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there. Common reasons for this error are:Incorrect file/directory permissions: Above 755. In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.Incorrect Apache directives inside .htaccess file. Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings.My files folder permissions are set to 666, I change them to 755 and as soon as I print it changes to 666. My htaccess file is 644. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 13, 2012 Share Posted October 13, 2012 Are you changing permissions from the FTP screen or from cpanel? My FTP client for some reason doesn't keep the changes I make to permissions. Thank you for your sig! Quote Link to comment Share on other sites More sharing options...
J Green Posted October 13, 2012 Author Share Posted October 13, 2012 Thanks Sig - I have done this and set the permissions ofr the files folder to 755, the .htaccess files to 644 and it still when printing order creates printxxxx.php files witha permission of 666. When I change the individual order printxxx.php files it will print that order, but when I select another order it gets a 666 file permission. I did the cpanel file manager and filezailla permission change - the folder holds the print files don't.When I change the individual order printxxx.php files to 755 it will print that order, but when I select another order it gets a 666 file permission. I did the cpanel file manager and filezailla permission change - the folder holds the print files don't. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 13, 2012 Share Posted October 13, 2012 Please try this: In the file /admin/sources/orders.index.inc.php at around line 486, find: if (file_put_contents(CC_FILES_DIR.$filename, $template.$cleanup)) { httpredir($GLOBALS['storeURL'].'/files/'.$filename); } else { $GLOBALS['main']->setACPWarning($lang['orders']['error_print_generate']); httpredir(currentPage(array('print'))); } Add the new chmod() statement after the first line: if (file_put_contents(CC_FILES_DIR.$filename, $template.$cleanup)) { @chmod(CC_FILES_DIR.$filename, 0755); // Immediately change the permissions so that the world can run the script httpredir($GLOBALS['storeURL'].'/files/'.$filename); } else { $GLOBALS['main']->setACPWarning($lang['orders']['error_print_generate']); httpredir(currentPage(array('print'))); } Quote Link to comment Share on other sites More sharing options...
J Green Posted October 14, 2012 Author Share Posted October 14, 2012 Thank You - That did the trick - I have been trying to fix this for over a week. Quote Link to comment Share on other sites More sharing options...
Guest creativeparrot Posted January 4, 2013 Share Posted January 4, 2013 I'm having the same issue. Internal 500 server error. All of my permissions are set correctly, Adding the line fix from the post above has not worked. I'm using cc 5 clean install Apache php ver 5.3 any thoughts would be helpful. Quote Link to comment Share on other sites More sharing options...
Taylore Posted June 27, 2013 Share Posted June 27, 2013 My CC5 sometimes prints and sometimes I get the error message! Who can go in and check this? Thanks! Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 27, 2013 Share Posted June 27, 2013 Your hosting provider should be able to find the error in the error log. But sometimes getting a 500 ISE and sometimmes not -- well, that's just weird. We ask that you determine if your hosting account has a PHP error log and/or a web server error log feature. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.