MarcC Posted June 5, 2013 Share Posted June 5, 2013 I am working on getting a TinyMCE plugin installed (forum post here) and there's a single issue remaining: A script by the authors of the plugin cannot be accessed--the browser is redirected to ProcessWire's 404 page. See below: Are you familiar with this CMS? We have never seen / heard of before. I uploaded tiny_mce_popup.js into /site/tinymce - it was easier than hack our plugin. So plugin in your CMS works but CMS doesn't allow us run php script for generating thumbs. We tried but without success, it is still rewrite if not by .htaccess then by CMS. This URL should return image: http://www.visitmarin.org/assets/cache.php?src=/images%2FStaff%20Images%2FDeborah_6x5.jpg&w=104&h=104 But it is redirect to 404 page. Maybe in CMS there is some whitelist of folders where can be run PHP scripts. Please try to figure it out. It is not matter of plugin, but file management of your CMS. Try to ask on forum why php script in /assets/ folder is redirect to 404 page. Any ideas on how to troubleshoot this? Not sure if it might be mod_security (how to troubleshoot?) or .htaccess or what. Thanks! Link to comment Share on other sites More sharing options...
kongondo Posted June 5, 2013 Share Posted June 5, 2013 I'll hazard a guess. I know PW prevents u from running php scripts directly in site/templates/ and some other places. Maybe also in assets folder? http://processwire.com/talk/topic/407-processing-contact-forms/?p=3106 1 Link to comment Share on other sites More sharing options...
MarcC Posted June 5, 2013 Author Share Posted June 5, 2013 Ahhhh...I think this is because I'm using a folder (leftover from MODx) called "/assets" and PW has its own folder called "/site/assets". I renamed it to "/test" and it seemed to work OK. But because other images in the site are already using "/assets/images/blah.jpg" I guess I need to either symlink "/assets" to "/test" or search & replace in the database. OK, I think this might be fixed now. Thanks! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now