Page 1 of 2
[solved] Some of the news don't take styles after upgrade
Posted: Fri Dec 21, 2012 10:53 am
by Sponsi
Hi,
I recently upgraded from 1.10.something to the latest, 1.11.4.
Everything seemed to work OK but older news don't show with CSS styles. Cache cleared, of course.
I think I made the site originally with 1.9 and then upgraded to 1.10, and now to 1.11.4 and I feel the older news are from the 1.9 era. Can you help with a solution?
Thanks,
Milo
Re: Some of the news don't take styles after upgrade
Posted: Fri Dec 21, 2012 1:23 pm
by staartmees
check your template for {cms_stylesheet} instead of {stylesheet}
Re: Some of the news don't take styles after upgrade
Posted: Fri Dec 21, 2012 4:02 pm
by Sponsi
I've got {cms_stylesheet}
- it was like that since 1.10 so I didn't have to change that.
EDIT:
I think I've found the problem. If the gallery is erased, the CSS is OK. I need to look for the root of the problem.
Re: Some of the news don't take styles after upgrade
Posted: Sat Dec 22, 2012 3:24 pm
by Sponsi
I don't know what it is but it might be something with the gallery.
Re: Some of the news don't take styles after upgrade
Posted: Sun Dec 23, 2012 10:06 am
by Rolf
Sponsi wrote:I don't know what it is but it might be something with the gallery.
Without more info nobody can help you I'm afraid...
Re: Some of the news don't take styles after upgrade
Posted: Sun Dec 23, 2012 10:41 am
by Sponsi
Well, If only I knew what info you need.
I don't know much more myself. Just see such behaviour.
Re: Some of the news don't take styles after upgrade
Posted: Sun Dec 23, 2012 11:59 am
by Rolf
System information and the url of the website would be a good start
Rolf
Re: Some of the news don't take styles after upgrade
Posted: Sun Dec 23, 2012 2:29 pm
by Sponsi
www.poradnia.gfo.pl
The three links on the right:
„Ukryj głoski w obrazku” - konkurs
Kobieta w Kulturze - konferencja
Szlachetna Paczka
e.g. the third one doesn't take CSS styles. This article has got a gallery, the other two - don't.
Strange stuff : ////
M.
Re: Some of the news don't take styles after upgrade
Posted: Sun Dec 23, 2012 5:09 pm
by Jos
Did you check the html sourcecode of that page? You would have noticed that the complete head section is missing, not only css..
I think your server runs out of resources while opening that news-item.
Maybe the pictures in the gallery are too big and your server doesn't have not enough resources to create thumbnails of them?
Re: Some of the news don't take styles after upgrade
Posted: Mon Dec 24, 2012 10:29 am
by Sponsi
Yea, this is what I've noticed too.
It can't be with the resources, I mean there's something wrong.
The question is: is it something with the CMS Made Simple?
My photos are OK and everything ran smoothly when 1.10.
This is the root of my problem: what the heck is going on with 1.11.4?
EDIT:
I've got this info from my hosting provider:
the script finishes at this place:
in the file:
Code: Select all
www/lib/smarty/sysplugins/smarty_internal_templatebase.php
the process behaves like this:
Code: Select all
lstat("/www/poradnia_www/www/lib/smarty/sysplugins/smarty_internal_templatebase.php(147) : eval()\'d code", 0x7fff8009d470) = -1 ENOENT (No such file or directory)
open("/www/poradnia_www/www/lib/smarty/sysplugins/smarty_internal_templatebase.php(147) : eval()\'d code", O_RDONLY) = -1 ENOENT (No such file or directory)
What is wrong with 1.11.4?
Re: Some of the news don't take styles after upgrade
Posted: Mon Dec 24, 2012 10:34 am
by Jos
Sponsi wrote:The question is: is it something with the CMS Made Simple?
No
Sponsi wrote:This is the root of my problem: what the heck is going on with 1.11.4?
If you did an upgrade from 1.10.x to 1.11.4, you might have a syntax error in the way you call Gallery from the News article.
CMSms 1.11 uses Smarty3 which is more picky on the right syntaxes than Smarty2 was
Re: Some of the news don't take styles after upgrade
Posted: Mon Dec 24, 2012 2:06 pm
by Sponsi
Well... anything special about
{Gallery dir="blabla"}
changed in 1.11.4?
Some other erros on another webiste:
Error: at line 702 in file /home/users/webastyczny/public_html/webastyczny/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Message:
Syntax Error in template "globalcontent:portfolio" on line 9 "<div class="portfolio_img">{Gallery dir='web/space2grow}</div>" - Unexpected "web", expected one of: "}" , " " , ATTR
How come CMS MS doesn't work anymore?
And I can't even edit this article!
EDIT 2:
Another webiste works... strange.
Re: Some of the news don't take styles after upgrade
Posted: Mon Dec 24, 2012 2:36 pm
by Jos
{Gallery dir='web/space2grow} must be {Gallery dir='web/space2grow'}
Re: Some of the news don't take styles after upgrade
Posted: Mon Dec 24, 2012 3:10 pm
by Sponsi
Yeah, I changed that.
Strange, because I've always used 'xxxx' and now it turned out that some of the Gallery dirs didn't have the closing '.
I'm investigating whether this is the main problem or something else... one of the website started to work but I think it had a different error than the original website I'm writing about in this thread.
Re: Some of the news don't take styles after upgrade
Posted: Wed Dec 26, 2012 11:40 am
by Sponsi
Just a note: the syntax error wasn't the problem.
It was a side problem.
The pages with {Gallery} still crash. I updated the gallery to 1.6 - no luck.