Jump to content

Syourt
 Share

Recommended Posts

Hi everyone,

 

I've build a shop for one of my clients using prestashop. The shop is working fine and I have launched the shop a couple of months ago. Now a couple of days ago the images uploaded through the CMS panel suddenly stopped working. When I go via a direct link to the img/cms/.../.../filename.jpg then I get to see an internal server error.

 

I have activated the dev mode and the following is showing up.

 

-----

 

Notice: Undefined index: scenes in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Trying to get property of non-object in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Undefined index: category in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Trying to get property of non-object in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Trying to get property of non-object in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Undefined index: category in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Trying to get property of non-object in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

Notice: Trying to get property of non-object in /home/bodyfas/domains/bodyfashionminerva.nl/public_html/cache/smarty/compile/dd/71/83/dd718363fdb089835f5fa074ba646cc9ec3f0fa0.file.header.tpl.php on line 191

 

-----

 

I don't believe the above is causing the trouble because this already was there from the beginning. The thing is, the exact same images were working perfectly fine before. And now it suddenly stopped working.

 

I'm using 1.6.0.14 with a custom build theme.

 

You can see the error via this link.

 

I hope you can help me, thanks in advance!

Share this post


Link to post
Share on other sites

I have found the solution via a post on http://www.inmotionhosting.com/support/community-support/prestashop-15/images-show-up-as-question-marks

 

I've commented the 'php_flag engine off' out and added the RemoveHandler and RemoveType lines. The specific file I needed was /img/cms/.htaccess

 

---

#php_flag engine off
RemoveHandler .php
RemoveType .php

---

 

Hope the above can help someone else!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More