2.0.1 to 2.2.3 Images, modules and admin missing, after upgrade
bugeye
Joined: 2005-07-06
Posts: 63 |
Posted: Sun, 2007-12-09 11:44 |
Hi, I've searched and can't find a solution. Thanks for your help in advance.. I was upgrading from 2.0.1. The Gallery wiki suggested dropping the new files on top of the old ones. I've had bad experience with doing that (loosing connection) so using the old config.php, I decided to do the upgrade from a fresh file system located at ....com/gallery2/ renaming the old gallery so it was not accessible. The upgrade went smoothly until step 4 'Upgrade Plugins'. It stated that a lot of my 'basic' modules such as users, admin and comments were out of date. They weren't on the plugin page upgrade list, but I was hoping that they would be upgraded anyway. This wasn't so, on the next page it appeared to have had only updated themes, icons, imagemagick, and none of the 'basic' modules. It also gave me an error about not being able to uprgade the NetPBM module which I will list below. So it appears that none of the modules that are needed to succesfully use the gallery, are present. I can't see images, or access the admin area. Have a look: View error: INSTALLATION DETAILS (Was) |
|
Posts: 32509
- FAQ: Images don't show up and the album / photo links don't work, what can I do?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
I think with this error, I should still be able to access the admin area.
With the FAQ, and couldn't complete step one as their is no piece of code like that in my config.php
Step 2 could provide hints:
http://www.sourdough.com.au/gallery2/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate
Posts: 32509
are you sure there's no maintenance.mode thing in your config.php?
please add it according to the faq entry.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
I updated my config.php to the latest format, and turned on maintenance mode.
"Images don't show up and the album / photo links don't work, what can I do?
Possible reasons:
Possible reasons:
* G2's URL rewrite module is active but doesn't work correctly. Fîx:
1. Put G2 into maintenance mode
2. Browse to http://www.example.com/gallery/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate
"
I see a blank page when I browse to this address:
http://www.sourdough.com.au/gallery2/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate
If I try the URL for earlier versions, I get:
http://www.sourdough.com.au/gallery2/main.php?g2_controller=core.AdminModules&g2_moduleId=rewrite&g2_action=deactivate
Posts: 32509
are you logged in as admin?
btw: we normal visitors can't browse to those URLs anway.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
Yes, I am logged in as admin. But that's all I can do. There is no administration page (404) BTW, thanks for your help valiant.
Posts: 32509
please disavle maintenance mode again to see if the request to the plugincallback page as admin helped.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
Maintenance mode did make a difference. With it I just got a blank page. Without it I received this:
Posts: 32509
in maintenance mode, logged in as admin user, when browsing to main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate, it should show you the following as a result:
{"status":"success","states":{"module":{"rewrite":"inactive"}},"deleted":[]}
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
I don't think maintenance mode my solution though? I've got more than images missing. I don't have an admin panel, and seems I don't have any other 'basic modules', how do I get these back?
Posts: 32509
> I've got more than images missing. I don't have an admin panel,
that's all because of URL rewrite, short URLs.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
Okay, I understand. So I guess we should diagnose why the URL I'm going to either gives a blank page, or an error.
With URL for versions 2.2
http://sourdough.com.au/gallery2/main.php?g2_view=core.PluginCallback&g2_pluginId=rewrite&g2_pluginType=module&g2_command=deactivate
Without maintenance mode
both logged in or out
With maintenance mode
Blank page, both logged in or out
URL for before 2.2
With maintenance mode, logged in or out
http://sourdough.com.au/gallery2/main.php?g2_controller=core.AdminModules&g2_moduleId=rewrite&g2_action=deactivate
Without maintenance mode
Same as above
I've used URL's for both versions as my installation could apply to both
Posts: 32509
that's all as expected. but the case with maintenance is not.
maybe enabling "immediate" debug mode helps to diagnose the problem.
FAQ: How to set/use Gallery in debug mode?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
ok, but which URL should I be using? 2.2 or the earlier one?
Posts: 63
For URL's 2.2 and below, respectively with debug and maintenance on:
Posts: 32509
> gallery2/modules/core_/module.inc
why is there a core_ folder in there? that shouldn't be there. we expect to have a core folder in modules/, not a core_ folder.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
I'm not sure. That's exactly how I downloaded it from the Gallery wiki, just yesterday. What should I do to fix it?
Posts: 32509
i don't think so
maybe your unzip program or so did that. our archives don't contain a core_ folder.
obviously you have both, a core and a core_ folder:
http://sourdough.com.au/gallery2/modules/core_/module.inc
http://sourdough.com.au/gallery2/modules/core/module.inc
please delete the core_ folder.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 63
Yay! Everything appears to be working. Thanks Valiant. Is it safe for me to turn on 'URL Rewrite'? Why does this problem happen in the first place?
(I've turned off debug and maintenance mode.)