Smarty warning when upgrading from 0.8.2 -> 0.9.2
Smarty warning when upgrading from 0.8.2 -> 0.9.2
Hi There!
I've just upgraded from 0.8.2 to 0.9.2 following the upgrade instructions. However when I try to access my site I simply get following error:
Warning: Smarty error: unable to read resource: "db:1" in /my/path/to/site/folder/html/lib/smarty/Smarty.class.php on line 1088
And nothing more happens... What should I do? Has anybody else encountered this?
Sincerly yours,
Sune
I've just upgraded from 0.8.2 to 0.9.2 following the upgrade instructions. However when I try to access my site I simply get following error:
Warning: Smarty error: unable to read resource: "db:1" in /my/path/to/site/folder/html/lib/smarty/Smarty.class.php on line 1088
And nothing more happens... What should I do? Has anybody else encountered this?
Sincerly yours,
Sune
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
This seems kind of strange, since there was no database upgrade between these 2 versions (I believe).
Can you get into the admin? If so, do the pages show up on Content Management? If they do, can you try clearning the cache in Site Preferences and try again?
Can you get into the admin? If so, do the pages show up on Content Management? If they do, can you try clearning the cache in Site Preferences and try again?
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
I was able to log into the admin and checked the Content Management. All pages seems to be present.
I did clear the cache as you suggested in Site Preferences but it had no effect. I still get the same error message and is unable to see the content of the site!
Additionally advice would be appreciated.
Sincerly yours,
Sune
I did clear the cache as you suggested in Site Preferences but it had no effect. I still get the same error message and is unable to see the content of the site!
Additionally advice would be appreciated.
Sincerly yours,
Sune
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Do the tmp/cache and tmp/templates_c directories exist? Does the server have write access to them? They should have bee in the .zip, but there have been reports of it not working for some people.
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
I used the .tar.gz-version but I suppose that doesn't matter. Both diretories in mention exists in tmp/ and are writeable by the server.
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Ok...
Go to content Management. Try viewing a page with the icon next to the edit icon. Does the page come up then?
Go to content Management. Try viewing a page with the icon next to the edit icon. Does the page come up then?
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Yes, the pages shows up when viewing them from Content Management and I can see the content of each page that way.
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Ok. Now we're getting somewhere.
Set the default page to something else and see what comes up.
Set the default page to something else and see what comes up.
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
I just realized that the default page was News, but the upgrade seems to have rendered the news-module disfunctional. When I select the News-plugin from the admin it simply comes up blank, hence it obivously doesn't work as default page. So selecting any other page as default enables acces to the site (Hooray
).
![Cheesy :D](./images/smilies/cheesy.gif)
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Ah hah!
Yeah, 0.9.2 has a slight bug with auto upgrading modules. Just go to Plugin Management and hit the upgrade button next to News. You should be fine after that.
Isn't software fun?![Smiley :)](./images/smilies/smiley.gif)
Yeah, 0.9.2 has a slight bug with auto upgrading modules. Just go to Plugin Management and hit the upgrade button next to News. You should be fine after that.
Isn't software fun?
![Smiley :)](./images/smilies/smiley.gif)
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Sorry for the slow reply, my 14 months old daughter chose to hit the reset-button at a very critical moment, leaving me with some very interesting problems.
In any case I upgraded all modules and now it seems to work more or less! However I don't seem to be able to set News as my default page anymore? It seems I can only choose those pages of type "Content", but News is of type "News". Am I missing something?
In any case I upgraded all modules and now it seems to work more or less! However I don't seem to be able to set News as my default page anymore? It seems I can only choose those pages of type "Content", but News is of type "News". Am I missing something?
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Ouch. That's what's known as a bug. I'll put it on my 0.10 TODO list. I'll see if I can come up with a quick fix for the moment.
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Ok, I apologize now for the major hack, but it'll do until 0.10 comes out...
Open up admin/listcontent.php. Find the line:
Change it to:
This basically means ANY type can be set default, so be careful. I'll obviously have a better solution later on.
Thanks!
Open up admin/listcontent.php. Find the line:
Code: Select all
if ($one->Type() == "content")
Code: Select all
if ($one->Type() != '')
Thanks!
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
Wonderful! That did the trick! Thank you very much for taking time to solve this problem! ![grin :-D](./images/smilies/grin.gif)
Sincerly yours,
Sune
![grin :-D](./images/smilies/grin.gif)
Sincerly yours,
Sune
Re: Smarty warning when upgrading from 0.8.2 -> 0.9.2
No problem. That's why we're here. ![Smiley :)](./images/smilies/smiley.gif)
![Smiley :)](./images/smilies/smiley.gif)