I upgraded from 1.1.5 to 1.1.7 and now the links to the theme CSS-file comes out wrong. No matter what theme i choose the link to the CSS is "/gallery/themes/1/styles/light.css". Some how it is stuck on an incorrect link.
The php-pages change when i change theme. It's only the CSS that's wrong. When i upgraded the theme was set to my own theme (vediamo) that is a modification of the default-theme.
I tried to upgrade a test-gallery (older version) and got the same error. I made a fresh install in a new folder and that works with my own theme.
How do I get it unstuck? I tried to follow the code to see where it went wrong but I don't think know enough to find it.
Test-gallery:
http://www.vediamo.se/zenphoto/
Comments
I have solved my problem now by making a new fresh install, restoring and then upgrading the database.
The test gallery is still up if you want to have a look. http://www.vediamo.se/zenphoto
... yep that fixed it. I deleted the zp-core and theme subdirectories, along with all the files in the home directory, and reuploaded them. Strange... maybe it's a glitch specifically with the upgrade from 1.1.5 to 1.1.7.
The problem is in zp-core/functions.php, line 1198. $_zp_themeroot is globaled there, then modified to include $intheme argument. I had slideshow plugin enabled, which is intheme, so that argument was set to true (1). That's where the '1' in the css url comes from. $_zp_themeroot should not be global in the getPlugin function, or should not be modified.