Fork me on GitHub

Upgrading from 0.764 upgrading Theme failed  Bottom

Go to page 1 - 2 [+1]:

  • 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.
  • 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
  • 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
  • It was in pn_themes (with nothing more added) and the row was themes_id not theme_id.
  • 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
  • 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??
  • 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
  • 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 icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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
  • ok thanx guys will give it a go and see what happens
  • it didnt work :*( i dont know why zikula hates me so much.
  • 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?
    icon_confused

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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/
  • These errors are of little consequence. I would disregard these as problematic, ATM.

    --
    David Pahl
    Zikula Support Team
  • ok so...what next??

Go to page 1 - 2 [+1]:

This list is based on users active over the last 60 minutes.