PeteW1959 Posted December 5, 2013 Share Posted December 5, 2013 Whenever I try to print, I get the following message:- [an error occurred while processing this directive] This happens when I click the printer icon on the line of an order, or if I tick the selection box and select print from the drop down menu at the bottom. I need to ship orders ugently, and need invoices printing off. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 5, 2013 Share Posted December 5, 2013 This happens whenever file/folder permissions do not allow for the application to read or write properly. I got the following from google: - Go to cPanel - Open File Manager from Files section - Navigate to domain folder - Check "Perms" column on far right hand side - Files should be set to: 0644 (this is the UNIX file permissions) - Folders should be set to: 0755 These numbers may be different if your hosting provider has installed any kind of security enhancement. Contact your hosting provider and ask if they have your site running under suPHP, or some other security system. They will be able to assist with getting the /files/ folder (I think) configured (or whitelisted) so that CubeCart can save the file that is sent to the browser with the document to be printed. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted December 6, 2013 Share Posted December 6, 2013 As usual brian is right. Server security settings are blocking it from working and that is the right course of action. Quote Link to comment Share on other sites More sharing options...
PeteW1959 Posted December 8, 2013 Author Share Posted December 8, 2013 Thanks for the suggestion, but this hasn't solved my problem. File and folder permissions are set correctly, and the print file (print.long_hex_number.php) is being created, so it isn't that CubeCart can't write it; it just isn't getting back to my browser. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 8, 2013 Share Posted December 8, 2013 What browser and what version are you using? Have you tried it in several browsers? Are you able to print other pages through your browser? Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 8, 2013 Share Posted December 8, 2013 You say the file, print.long_hex_number.php, is getting saved to the /files/ folder (and it stays there long enough for you to see it) then [an error occurred while processing this directive] is sent to your browser. On the surface, you do not see the 301 (302?) Redirect that CubeCart sends to your browser. CubeCart must send a Redirect so as to tell your browser to ask for www.store.com/files/print.long_hex_number.php. The web server is most likely objecting to this request, or is having some kind of problem with getting PHP to read (and execute the instructions in) that file. What happens if you were to manually enter www.store.com/files/print.long_hex_number.php into your web browser? If the same error response is received, then its a web server or hosting account security issue. Quote Link to comment Share on other sites More sharing options...
PeteW1959 Posted December 8, 2013 Author Share Posted December 8, 2013 Just tried entering the file into the web browser (Firefox) as suggested and get the same message. Tried it in IE and I get a 500 Internal Server Error. Have just emailed my hosting provider for advice. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted December 9, 2013 Share Posted December 9, 2013 If you get a 500 error then the server will (should) write to a PHP error log file. This will give us some actual error messages to work from. 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.