Another menu/stylesheet/smarty failure after upgrade
Another menu/stylesheet/smarty failure after upgrade
I recently upgraded several of my CMSMS sites to v1.4.1 from one of the 1.3 versions. I've been running these sites for a very long time under many versions of CMSMS and have never had an upgrade problem before now.
The sites are running under Apache 2.2.6 on a server running RedHat Fedora Core 6 with MySQL 5.0.27 and PHP 5.1.6. It's my own server so I have complete control over root access and everything.
What's happened is that the sites no longer show the navigation menu, nor do they seem to process the stylesheets that were previously working fine, and I don't seem to be able to get them back. I've done all of the following, none of which helped:
1. Copied cmsmadesimple-1.4.1-full.tar.gz and unpacked it in the right directory
2. Made sure all of the file ownerships were set correctly (to the webserver process owner)
3. Checked permissions to make sure things like tmp/* and config.php were appropriately writable
4. Checked the checksums against the ones downloaded from the CMSMS download site
5. Cleared out the cache files
6. Run the install/upgrade.php script (with no errors)
In fact, I've tried running the upgrade process several times, with both the -full and the -base tarballs. I also tried reinstalling CMSMS, rather than upgrading, in the same places (without recreating the database tables). I've even installed a fresh copy of CMSMS base in a new directory and done the install, pointing it at the existing database.
The admin interface seems to function fine (although - perhaps significant - it lost its layout/stylesheets at one point after saving the admin user account information but logging out and re-running the upgrade process fixed it and it hasn't malfunctioned since).
I sure could use some help getting things back up and running correctly. You can check out my test site at http://bogo.awcubed.com. I've set debug mode on and it's showing the messages but I don't see anything that (to my untrained eye anyway) looks out of whack - can I get an idea of what I might be looking for there?
Thanks in advance.
The sites are running under Apache 2.2.6 on a server running RedHat Fedora Core 6 with MySQL 5.0.27 and PHP 5.1.6. It's my own server so I have complete control over root access and everything.
What's happened is that the sites no longer show the navigation menu, nor do they seem to process the stylesheets that were previously working fine, and I don't seem to be able to get them back. I've done all of the following, none of which helped:
1. Copied cmsmadesimple-1.4.1-full.tar.gz and unpacked it in the right directory
2. Made sure all of the file ownerships were set correctly (to the webserver process owner)
3. Checked permissions to make sure things like tmp/* and config.php were appropriately writable
4. Checked the checksums against the ones downloaded from the CMSMS download site
5. Cleared out the cache files
6. Run the install/upgrade.php script (with no errors)
In fact, I've tried running the upgrade process several times, with both the -full and the -base tarballs. I also tried reinstalling CMSMS, rather than upgrading, in the same places (without recreating the database tables). I've even installed a fresh copy of CMSMS base in a new directory and done the install, pointing it at the existing database.
The admin interface seems to function fine (although - perhaps significant - it lost its layout/stylesheets at one point after saving the admin user account information but logging out and re-running the upgrade process fixed it and it hasn't malfunctioned since).
I sure could use some help getting things back up and running correctly. You can check out my test site at http://bogo.awcubed.com. I've set debug mode on and it's showing the messages but I don't see anything that (to my untrained eye anyway) looks out of whack - can I get an idea of what I might be looking for there?
Thanks in advance.
Last edited by awarnock on Wed Oct 15, 2008 9:38 pm, edited 1 time in total.
Re: Another menu/stylesheet/smarty failure after upgrade
string(194) "Smarty error: [in template:2 line 16]: syntax error: plugin function smarty_function_bulletmenu() not found in /var/www/cms/plugins/function.bulletmenu.php (Smarty_Compiler.class.php, line 805)" string(116) "Smarty error: [in template:2 line 29]: syntax error: unrecognized tag 'footer' (Smarty_Compiler.class.php, line 590)"
Did you maybe forget to add plugins in your plugin folder that you had before? (function.bulletmenu.php)
and
unrecognized tag 'footer' I guess a template is broken...
Or to do it hard and fast: (which I sometimes resort to)
if below does not make sense, or if you are not comfortable with it, you can ignore this:
(again, these are rough outlines)
Make a database backup (via phpmyadmin or so) <-- always keep one db safe
Make a ftp/domain backup (via directadmin or so) <-- always keep it, you need the extras (images, plugins, modules) again
Create a new database <-- just to be sure, and not wreck the older one.
Unpack the v1.4.1 and install, pointing to new database <-- you are familiar with this
In new database, import the "old" (run sql query from backup file)
Paste your old uploads files into the new uploads folder (holding your extra images)
Paste your old plugin files into the new plugin folder (you might have extra plugins added)
Paste your old module files into the new module folder (you might have extra modules added)
Navigate to you admin
Run the upgrade script
Did you maybe forget to add plugins in your plugin folder that you had before? (function.bulletmenu.php)
and
unrecognized tag 'footer' I guess a template is broken...
Or to do it hard and fast: (which I sometimes resort to)
if below does not make sense, or if you are not comfortable with it, you can ignore this:
(again, these are rough outlines)
Make a database backup (via phpmyadmin or so) <-- always keep one db safe
Make a ftp/domain backup (via directadmin or so) <-- always keep it, you need the extras (images, plugins, modules) again
Create a new database <-- just to be sure, and not wreck the older one.
Unpack the v1.4.1 and install, pointing to new database <-- you are familiar with this

In new database, import the "old" (run sql query from backup file)
Paste your old uploads files into the new uploads folder (holding your extra images)
Paste your old plugin files into the new plugin folder (you might have extra plugins added)
Paste your old module files into the new module folder (you might have extra modules added)
Navigate to you admin
Run the upgrade script
Last edited by jack4ya on Thu Oct 16, 2008 11:11 am, edited 1 time in total.
Re: Another menu/stylesheet/smarty failure after upgrade
Actually, it seems the Smarty error goes away once I log into the admin panel. I'm so much worried about that or the footer error. What's weird is that even when those error messages go away, the formatting issue (no stylesheets, no menus) remains. See, e.g., www.awcubed.com - which ought to have navigation menus down the left side.
In the meantime, I'll try your suggestions with the database. I already did the rest (i.e., making a completely new installation, copying just the images - no additional addons or plugins). Thanks.
In the meantime, I'll try your suggestions with the database. I already did the rest (i.e., making a completely new installation, copying just the images - no additional addons or plugins). Thanks.
Re: Another menu/stylesheet/smarty failure after upgrade
I don't see any errors (smarty errors/css)awarnock wrote: Actually, it seems the Smarty error goes away once I log into the admin panel. I'm so much worried about that or the footer error. What's weird is that even when those error messages go away, the formatting issue (no stylesheets, no menus) remains. See, e.g., www.awcubed.com - which ought to have navigation menus down the left side.
In the meantime, I'll try your suggestions with the database. I already did the rest (i.e., making a completely new installation, copying just the images - no additional addons or plugins). Thanks.
For MenuManager, are you sure that you have default template or select one in tag?
Alby
Re: Another menu/stylesheet/smarty failure after upgrade
Grazie Alby,
No errors on the www.awcubed.com site - that's correct. No menus, either. The error Jack4ya was talking about is at my test site bogo.awcubed.com (I use this as my experimental site).
I'm don't quite understand what you say about the templates for MenuManager. I just upgraded an existing site (well, several of them, actually) and the menus & stylesheets stopped working. Is there some step related to the MenuManager that I somehow missed in the upgrade? Otherwise, I'd assume the defaults would carry over correctly from the previous versions, which all worked fine. Can you give me some more details?
Here's a new detail. I just looked at my page template and it contains a {bulletmenu} tag. Perhaps that's no longer valid and should be {menu} instead? I changed it to {menu} and got a primitive menu at the top, but still no styling. It actually is starting to look like the stylesheets my sites formerly used are no longer available. Is that a possible side-effect of the upgrade?
No errors on the www.awcubed.com site - that's correct. No menus, either. The error Jack4ya was talking about is at my test site bogo.awcubed.com (I use this as my experimental site).
I'm don't quite understand what you say about the templates for MenuManager. I just upgraded an existing site (well, several of them, actually) and the menus & stylesheets stopped working. Is there some step related to the MenuManager that I somehow missed in the upgrade? Otherwise, I'd assume the defaults would carry over correctly from the previous versions, which all worked fine. Can you give me some more details?
Here's a new detail. I just looked at my page template and it contains a {bulletmenu} tag. Perhaps that's no longer valid and should be {menu} instead? I changed it to {menu} and got a primitive menu at the top, but still no styling. It actually is starting to look like the stylesheets my sites formerly used are no longer available. Is that a possible side-effect of the upgrade?
Re: Another menu/stylesheet/smarty failure after upgrade
One more update - I think we can ignore the footer error that appears. In my template, I have the following:
{footer}
-->
My guess is that Smarty isn't quite smart enough to notice that the tag is commented out and not try to process it.
{footer}
-->
My guess is that Smarty isn't quite smart enough to notice that the tag is commented out and not try to process it.
Re: Another menu/stylesheet/smarty failure after upgrade
html comment tag != smarty comment tagawarnock wrote: My guess is that Smarty isn't quite smart enough to notice that the tag is commented out and not try to process it.
{* footer *} = is a comment for smarty
{bulletmenu} is relative to bulletmenu plugin
{menu} is relative to Menumanager module
are more different
My advice is use template param in MenuManager tag {menu ...} look to help Module
Alby
Re: Another menu/stylesheet/smarty failure after upgrade
Thanks for clarifying. I've fixed that now. It was never a problem before this upgrade, which is probably why I overlooked it.alby wrote: html comment tag != smarty comment tag
{* footer *} = is a comment for smarty
The bulletmenu plugin is now missing, although I'm not sure why. It gives me something to investigate. Thanks. I'll post back when I figure out what happened.alby wrote: {bulletmenu} is relative to bulletmenu plugin
{menu} is relative to Menumanager module
are more different
My advice is use template param in MenuManager tag {menu ...} look to help Module
Re: Another menu/stylesheet/smarty failure after upgrade
Ah - I see... the bulletmenu plugin was removed in CMSMS 1.3. I'll have to figure out an alternative. Hopefully that'll resolve the problem. I'll post back (and change the subject line) when I figure out what to do.
Re: Another menu/stylesheet/smarty failure after upgrade
lol... that's where we started at... me mentioning that you had the bullet menu missing.
Off course
you have a backup. How about trying to copy/paste the bullet menu template back.
(Or maybe you can still find it in older downloadable versions online)
I just might work, but probably not (maybe some modifications), but there's not much to loose.
Off course

(Or maybe you can still find it in older downloadable versions online)
I just might work, but probably not (maybe some modifications), but there's not much to loose.
Re: Another menu/stylesheet/smarty failure after upgrade
Well, exactly. The bulletmenu was missing because the bulletmenu is, ummm..., missing. That is to say, it's missing in the display (and evidently took its styling friends with it) because it's been removed from the code.
I can restore it from backup but I think it's probably better (since I'd guess it was removed for a reason) to update my sites to use whatever current equivalent I can find. I'm guessing that'll solve the entire problem but it'll be a few days before I can get the changes in. Thanks for the help!
I can restore it from backup but I think it's probably better (since I'd guess it was removed for a reason) to update my sites to use whatever current equivalent I can find. I'm guessing that'll solve the entire problem but it'll be a few days before I can get the changes in. Thanks for the help!