GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 158 forks source link

ajax.phtml not valid template #21

Closed sholdowa closed 11 years ago

sholdowa commented 11 years ago

Hi Gordon,

Have a 1.7.0.2 site running the latest Lesti_Fpc backed by redis/cm_cache_backend_redis. It's raising the error

2013-08-27T20:55:13+00:00 CRIT (2): Not valid template file:frontend/base/default/template/fpc/catalog/product/view/ajax.phtml

in var/log/system.log.

File is unchanged by us. Should I be worried?

Cheers,

Steve

GordonLesti commented 11 years ago

Not worried, but you should take a look if this file really exists or has the needed rights. You see it's in the repo https://github.com/GordonLesti/Lesti_Fpc/blob/master/app/design/frontend/base/default/template/fpc/catalog/product/view/ajax.phtml.

sholdowa commented 11 years ago

Hi Gordon,

Yes it's there, up to date and with the right permissions. Installed via modman and symlinks enabled in magento. Just confused as to why mage is complaining!

GordonLesti commented 11 years ago

yes, sounds spooky. I will check it again in a fresh install and give you feedback.

AndreasDeRijcke commented 10 years ago

Hi Gordon,

We are getting the same warning as described here.

However in our setup, the extension was installed on a staging copy of the site, added to SVN (legacy...) and then brought to the production site using SVN. Everything works fine, expect for this warning clogging system.log.

Hosting is the same for both, the symlinks are fine. We are currently out of ideas on how to get rid of this warning.

Do you have any idea or clue about this?

Thanks in advance.

Regards, Andreas

GordonLesti commented 10 years ago

Hello, It's like I said above. But you can contact me in the next year via mail and I can take a look at it.

juliorosier commented 10 years ago

Hi there,

Do you already have a solution for this ?

I got a similar message

2014-06-05T17:19:39+00:00 CRIT (2): Not valid template file:frontend/base/default/template/fpc/catalog/product/view/ajax.phtml 2014-06-05T17:19:39+00:00 ERR (3): Notice: Array to string conversion in /data/web/public/app/code/core/Mage/Catalog/Block/Product/View/Attributes.php on line 66

Can you give me the command to give it the correct rights ? it currently has 644

SO I will try that first

Thanks

Julio

jonathanvaughn commented 10 years ago

I just ran into this today even though we've installed this numerous times on other development sites for other clients without issue. Installed via modman (so symlinks galore), I replaced the fpc symlink at app/design/frontend/base/default/template with regular directories/file and it works without error.

Turns out the problem was template symlinks were disabled. When installing with modman (or any other case where things get symlinked in) make sure you enable symlinks in System > Configuration > Developer > Template Settings > Allow Symlinks. Apparently, this was already on every other time I've installed Lesti FPC ...

Might be good to add that as a FAQ item or something (though maybe it is, I didn't look... D: )

AndreasDeRijcke commented 10 years ago

Yes, you are right. That setting not turned on seemed to be the problem. We overlooked it too.

iget-master commented 6 years ago

After SUPEE-9767, the @jonathanvaughn solution doesn't work anymore since theres no allow symlinks option anymore.

To solve it I used the first answer on this Magento Stackexchange question