I had the problem upgrading from 0.764.
The root was that the primary key in _themes was theme_id and Zikula tried to add a new auto_increment row called pn_id.
MySql 5.0.51 did not allow that and the upgrade failed.
The solution was to rename the primary key to pn_id.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Upgrading from 0.764 upgrading Theme failed
-
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
-
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
Next surpruce is that if you do not include the register_global off in the .htaccess, the upgrade will continue to cykle resulting in an error regarding pn_timezone_offset missing in _users -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
kakkerlakgly
I had the problem upgrading from 0.764.
The root was that the primary key in _themes was theme_id and Zikula tried to add a new auto_increment row called pn_id.
MySql 5.0.51 did not allow that and the upgrade failed.
The solution was to rename the primary key to pn_id.
What table is this done in??
pn_theme_addons
pn_theme_blcontrol
pn_theme_cache
pn_theme_config
pn_theme_layout
pn_theme_palette
pn_theme_skins
pn_theme_tplfile
pn_theme_tplsource
pn_theme_zones
edited by: emada, Nov 17, 2008 - 03:01 AM -
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
It was in pn_themes (with nothing more added) and the row was themes_id not theme_id. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
But it's weird. How can you change the primary key or even the index when the pn_themes table is created during the upgrade process? have you changed the Themes/pntables.php file?
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
ok i dont seem to see pn_themes in my 7.6.4 DB. . . so you have to do a upgrade and let it fail then make the changes to the DB?? then what?? -
- Rank: Registered User
- Registered: Nov 27, 2006
- Last visit: Jan 13, 2009
- Posts: 11
The site is from way back .724 or something (upgraded to .764 2 years ago), the table pn_themes might be some leftover garbage.
I tried the upgrade which failed, found the error, changed the name of the primary key themes_id to pn_id which causes zikula to alter the row instead of trying to add a new.
edited by: kakkerlakgly, Nov 17, 2008 - 11:51 AM -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Ah, so it can work...
emada, try this: perform a clean install of Zikula.
Export the sctructure of the pn_themes table and copy it to your 0.764 database.
Then perform the upgrade and let's see what happen
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
I agree with Mateo, clear out all of your themes, first. Then try the upgrade.
The theme upgrade is a helper tool, not a definitive script to do theme upgrades. It only really works perfectly for XTE-cookie-cutter themes. Themes that have 'custom' workings fail the upgrade rather easily, as there are too many scenarios for which to account.
--
David Pahl
Zikula Support Team -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
-
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Any detail of what happened with the pn_themes table and the old ones? were deleted successfully or not? no error message at all in the PHP error log?
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
all the old tables are still there. PHP logs to syslog and there is nothing :( i did find this in the apache logs:
[Tue Nov 18 09:49:07 2008] [error] [client 10.10.5.227] File does not exist: /var/www/themes/ExtraLite/images/icon.png
[Tue Nov 18 09:49:07 2008] [error] [client 10.10.5.227] File does not exist: /var/www/themes/ExtraLite/images/favicon.ico
[Tue Nov 18 09:49:07 2008] [error] [client 10.10.5.227] File does not exist: /var/www/themes/ExtraLite/style/styleNN.css, referer: http://10.10.5.210/ -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
These errors are of little consequence. I would disregard these as problematic, ATM.
--
David Pahl
Zikula Support Team -
- Rank: Softmore
- Registered: Oct 05, 2008
- Last visit: Feb 17, 2010
- Posts: 144
- Moderated by:
- Support
