HTTrack Website Copier
Free software offline browser - FORUM
Subject: CakePHP plugin issue
Author: mark simon
Date: 03/05/2014 11:44
 
Have migrated my project to another server with fresh installation of LAMP
stack.

I have a plugin in CakePHP. This plugin has some images and javascript in
directories webroot/js and webroot/img. The webroot directory is in the
plugin.

On the site, the images are loaded like this:

<img src="/plugin=name/img/logos/logo_w.png"> <script type="text/javascript"
src="/plugin-name/js/core/core.js"></script>

The strange thing is that the javascript is loaded without problems but for
the images, only the right HTTP headers are sent (like Content type, Content
lenght, all of them are correct), 200 response code, but the response body
(the image data) is missing.

Where could be the problem?
The img directory is owner by www-data as well as the js one. Another weird
thing is that images, that are directly in the webroot in the app root
directory are displayed normally.

What can this be caused by?
Mark Simon
<http://www.agileinfoways.com>
 
Reply


All articles

Subject Author Date
CakePHP plugin issue

03/05/2014 11:44




3

Created with FORUM 2.0.11