Running the 2.2.4 version of gallery. I've tried to upgrade to a nightly build to see the last version of the slideshow module of 'bharat' with piclens supported (hummm good program ;-)! ).
I uploaded my gallery folder with the new files. Began the process of upgrading :
- 1 error : the rights of my gallery2 data directory are too restrictives (ok i'v changed to 777 even if I don't understand why it worked whithout this change...)
- 1 warning : A lot of files that I can now delete. OK I have not the time for this time but I want a clean install so for now I stopped. One day later go back, deleted the files and run the upgrade --> Blank Page! Oops maybee I deleted a file that I didn't need to...
Go back to upload the last version of my gallery2 folder with the nightly build files in. Go back to the upgrade process and same player play again blank page
((.
I have activated the debug mode but not understanding what's the problem...
With the first page I get :
Debug Redirect
Not automatically redirecting you to the next page because we're in debug mode
Continue to the next page
file_exists(/home/tometdon/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
getParameter language.useBrowserPref for core plugin
file_exists(/home/tometdon/g2data/cache/module/core/0/0/0.inc)
getParameter default.language for core plugin
controller , view
Loading plugin core
Class not defined, trying to include it.
file_exists(/home/tometdon/public_html/gallery/modules/core/module.inc)
core plugin successfully instantiated
file_exists(/home/tometdon/g2data/versions.dat)
file(/home/tometdon/g2data/versions.dat, )
Redirect to the upgrade wizard, core module version is out of date
Next Page:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/tometdon/public_html/gallery/upgrade/index.php:1) in /home/tometdon/public_html/gallery/lib/support/GallerySetupUtilities.class on line 357
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/tometdon/public_html/gallery/upgrade/index.php:1) in /home/tometdon/public_html/gallery/lib/support/GallerySetupUtilities.class on line 357
I don't understand what happens... Any help would be appreciate.
Thanks
Tom
file_exists(/home/tometdon/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
getParameter language.useBrowserPref for core plugin
file_exists(/home/tometdon/g2data/cache/module/core/0/0/0.inc)
getParameter default.language for core plugin
controller , view
Loading plugin core
Class not defined, trying to include it.
file_exists(/home/tometdon/public_html/gallery/modules/core/module.inc)
core plugin successfully instantiated
file_exists(/home/tometdon/g2data/versions.dat)
file(/home/tometdon/g2data/versions.dat, )
Redirect to the upgrade wizard, core module version is out of date
Gallery version (not just "2"): 2.2.4
PHP version (e.g. 5.1.6): 5.2.4
PHPInfo Link (see FAQ): http://gallery.tometdona.fr/phpinfo.php
Webserver (e.g. Apache 1.3.33): 1.3.41
Database (e.g. MySql 5.0.32): 5.0.45
Activated toolkits (e.g. NetPbm, GD): ImageMagick, FFMpeg
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): FireFox 2.0.0.12, IE 6.0.2800
Posts: 36
I used the backup of my gallery folder without the 'nightly build' files hoping it will be good...
Now the errors are :
file_exists(/home/tometdon/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator getParameter language.useBrowserPref for core plugin file_exists(/home/tometdon/g2data/cache/module/core/0/0/0.inc) getParameter default.language for core plugin controller , view Loading plugin core Class not defined, trying to include it. file_exists(/home/tometdon/public_html/gallery/modules/core/module.inc) core plugin successfully instantiated file_exists(/home/tometdon/g2data/versions.dat) file(/home/tometdon/g2data/versions.dat, ) file_exists(/home/tometdon/public_html/gallery/modules/httpauth/classes/HttpAuthPlugin.class) file_exists(/home/tometdon/g2data/cache/module/httpauth/0/0/0.inc) getParameter id.anonymousUser for core plugin [1208729768] can't guarantee 5 -- extending! file_exists(/home/tometdon/g2data/cache/entity/0/0/5.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/home/tometdon/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/home/tometdon/public_html/gallery/modules/core/ShowItem.inc) getParameter acceleration for core plugin getParameter id.anonymousUser for core plugin getParameter id.anonymousUser for core plugin getParameter id.adminGroup for core plugin
3 months that I'm working on that site and I don't know how to get it back to life
.
Posts: 4965
Check your Apache error logs, there's a deeper problem here and Gallery is unable to report it (because it's happening at the Apache level). Put the nightly code back in place, then run through the upgrader completely from beginning to end and you should be ok. If you get a blank page at any time, please report whatever you can find from the apache error log (check the FAQ for the error first, it's probably in there).
None of your data is lost. Don't worry, you'll get it all back.
Posts: 36
Thanks for your message bharat. It gives me some hope ;-).
I'm sure it's possible to get it working but for now I don't understand nothing.
I Put back in place my old files with the new ones (last night code) but it's always the same.
In cPanel (of my provider), I'm able to see the log and the error log but nothing that can help mee (my ip was 201.252.23.219)
- Log :
- and extract of the error log :
No errors with my IP... Maybee cPanel don't give me all the errors?
Posts: 4965
The page is giving you a 500 error, which is not something that G2 does. So something significant is going wrong out from under G2 :-/. You might try pinging your sysadmin to see if there are other logs that you don't know about. The installer url works: http://gallery.tometdona.fr/install/ so at least we know that PHP is ok, and it's redirecting from http://gallery.tometdona.fr to the upgrader, so at least we know that is ok also.
Try raising your memory limit from 32M:
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
Also try editing your config.php to show errors:
Also FAQ: How to display PHP errors?
Posts: 4965
Also try:
FAQ: I get only a blank screen when trying to view my Gallery, what's wrong?
Posts: 36
Thanks. I've already tried all of this before posting in this forum.
The PHP messages are in the first post.
For now I get this in the first page with firefox and nothing on the upgrade page (and with IE just get an HTTP 500 error)
The PHP memory limit that I can see with phpinfo is already 32M
The Apache log are in my second post and for now the error log is completely empty... I asked my sys admin if there are some other 'log' without lot of hope.
Don't know how to progress with this problem...
Posts: 4965
I saw your messages from the first post, but they don't make sense to me in this context so I'm not sure what's going on. Let's escalate this to the next level. Can you PM me info so that I can get access to your server? If I can ssh in and poke at the code I can fix your problem and hopefully resolve whatever bug caused it in the first place and get that fix into 2.3. Thanks.
Posts: 4965
Thanks for giving me ftp access.
Ok, I've fixed the blank upgrader problem. The issue was that in config.php you told it to use the "mysqli" database type, but you don't have the mysqli database extension installed on your version of PHP. This caused the 3rd party database interface we use (ADOdb) to trigger a silent failure. This technically should never happen so I'll investigate it. In the meantime I set your database type to mysql which should work fine.
In order to proceed past step 3, you should do a database backup. I didn't upgrade you since I didn't have time to do the backup for you, etc. But you should be able to go through the upgrader yourself at this point. Let me know if you have problems!
Posts: 36
Yeah! Great! Wonderful! Thank you very much!! (one more time ;-) )
3 questions :
- How did you find that?? That's necessary to be the specialist you are or I would
have found it alone?
- For now, I know that my provider changed my account from a server to another one. He told me that both are exactly the same. Do you agree to say that at least the msqli module was actived on the first one and not on the second one?
- Don't know what are the difference between the msqli and the msql modules of PHP. Is the msqli one more efficient? Do I need to ask for its activation?
So happy of your help!!
Thanks!
Tom
Posts: 4965
It took a while to find this particular issue, I wouldn't expect you to find it on your own. It's a bug; we need to fix it.
Your provider was incorrect. This *is* a difference. The mysqli module was active on the first server and not the second one (unless you changed the config.php file by hand-- unlikely).
The difference is subtle, but mysqli is better. I'd ask for its activation, then switch it in your config.php.
Posts: 36
Thanks. I made the upgrade with the mysqli module activated.
Get an error on the module 'ImageMagick' because there was another *little* difference between the both servers : the imagemagick binaries was not installed on the new server... Go back to the update process saying there was nothing to do more.
For now all seems to be fine from the gallery2 side (got a pb but I think it's more from the wpg2 plugin of wordpress side) except a message at the bottom of the side bar :
"WARNING: block core.NavigationLinks doesn't exist."
I didn't find help in the past posts. If you have any idea...
Posts: 4965
We deleted the core.NavigationLinks block in 2.3. You need to go to Site Admin -> Themes and remove that block from your theme block list. Sorry bout that!
Posts: 36
OK I don't know if I'm right : I didn't found anything helping me in the administration part.
But knowing that you removed this 'block' I remove the line
in the sidebar.tpl file of my wordpressembedded theme directory and needed to clear the template cache of gallery to see this warning disappears!
Great, let me know if there's a better way to do it.
Thanks
Tom