First, thank you all for an awesome product! I've just recently started using gallery v1.5 and wow! great job all.
I've recently tried using G2 and have been having faults. First off, during the install, of step 8, 9 and 10 I get the following error message on the browser:
Notice: Only variable references should be returned by reference in /www/e/ehy0121/htdocs/gallery2/modules/core/classes/GalleryDataCache.class on line 308
Many of the following:
Notice: Only variable references should be returned by reference in /www/e/ehy0121/htdocs/gallery2/lib/adodb/adodb.inc.php on line 2832
FYI - The integrity check was perfect all green in step 2.
I think that this issue is causing most of my other problems. I tried migration some albums from G1 to G2 and I get errors where I cannot display the photo album page at all (I get a server error). So the only way to resolve this is to delete the photo albums folders using FTP then G2 will at least work with broken image links. I then delete the albums using the browser interface. THIS IS RANDOM. Some albums works fine others just crash G2.
Thanks in advance,
-Evan
----
Hosted by Powweb.com
Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.4.0 cgi
Webserver = Apache/1.3.33 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7d PowWeb/1.1
Database = mysql 4.1.11-log
Toolkits = ArchiveUpload, Exif, ImageMagick, SquareThumb, Thumbnail
Operating system = FreeBSD clust05-www01.powweb.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Thu Ma i386
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; SV1; .NET CLR 1.1.4322
G1 version: 1.5
Posts: 40
I have the exact same problem, however I did not have this problem the very first time I attempted install but it still acted strangely (instead of viewing the gallery at the end, it always goes to the upgrade page)... I just signed up for POWWEB yesterday and am using a new install of PHP-Nuke (not integrated yet). so I'm putting my files in the modules/gallery2 folder. the g2data folder is the same level as my htdocs folder so it is outside the root and secure and files are successfully being created in it.
I'm about to delete everything and install the gallery first to see what happens.
Hosted by Powweb.com
Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.4.0 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.1.11-log
Toolkits = ArchiveUpload, Exif, ImageMagick, SquareThumb, Thumbnail
Operating system = FreeBSD 4.11-RELEASE #0
Browser = IE 6
Posts: 32509
in a clean beta 4, this can't be. this was fixed before.
same here. this was fixed in beta 4.
ideas:
- you have not a beta 4, but a nightly snapshot which is a few days older than beta 4
- you have a very weird issue, where php accelerators or so are involved.
Posts: 40
Ok, so i removed every single file from my server, and I deleted every single database entry. I downloaded gallery-2.0-beta-4+.tar from http://galleryupdates.jpmullan.com that is updated as of 3:45am this morning. I went through the installer, and the exact same error comes up when going through steps 8-10....
As always however, it also says it is successful on every step and when trying to go to main.php it wants to upgrade.
Hosted by Powweb.com
Gallery version = 2.0-beta-4 core 0.9.32
PHP version = 4.4.0 cgi
Webserver = Apache/1.3.33 (Unix)
Database = mysql 4.1.11-log
Toolkits = ArchiveUpload, Exif, ImageMagick, SquareThumb, Thumbnail
Operating system = FreeBSD 4.11-RELEASE #0
Browser = IE 6
Posts: 32509
asi said. i just looked at the code. i know the reason for such notces and i know how to fix them and i see in this file in this very line it is fixed.
zip your file please and load it somewhere up such that i can see whether such a notice is possible in your case.
Posts: 40
so you want me to download all the files in my gallery2 folder and zip them up? ok, i'll post a link when I ahve it available.
Posts: 32509
no, i want you to zip the /lib/adodb/adodb.inc.php file only
Posts: 40
Here you go. I don't use Winzip. I use WinRAR so if you can't open this zip file let me know.
Posts: 32509
thanks.
something's wrong with your php then. the file is ok.
i'd place my bet on something like php accelerator / cache issues.
Posts: 40
I am using the standard php.ini file that POWWEB provides, however I can make changes to it and put it in my root folder. Would you like to see a copy of it?
If it was cache issues, where would I go about fixing that?
Posts: 32509
no, what i'm saying is: php shows this notice since php 4.4.0 if the script does something that is not 100% correct. we fixed it. we checked with several php 4.4.0 installs if it's really fixed.
but your php still complains about it, for no reason. it shouldn't. period. it's not a configuration issue, your php engine is just behaving buggy.
since it's just a Notice and not a warning or error, you could just change your php warning level to such that you no longer see Notices.
a productive php server shouldn't show any errors at all anyway.
in your php.ini, set it to:
error_reporting = E_ALL & ~E_NOTICE
Posts: 40
I don't know if this makes any difference, but I want to remind you that I did not get this notice the very first time I went throught the install process.
And turning off the warning may make the warning disappear, but to me that still doesn't explain to me whay I can't view my gallery. Like I said, any time I try to load the front page of it (main.php ?) It goes to the upgrade screen. What do you think that is about?
In the meantime, I will make the change u suggested.
Posts: 32509
an install loop -> upgrade loop. then activate immediate debug mode (in config.php) once it is installed and browse to main.php. you should get some debug information, post it.
Posts: 40
On a side note...
I think it may be possible for me to force my site to use php version 5 instead of 4.4. Do you think this may fix the issue or something I should try?
Posts: 40
Notice: Only variable references should be returned by reference in /www/t/theklingsnet/htdocs/modules/gallery2/lib/adodb/adodb.inc.php on line 2832
Notice: Only variable references should be returned by reference in /www/t/theklingsnet/htdocs/modules/gallery2/lib/adodb/adodb.inc.php on line 2832
Warning: mkdir(../../../../g2data): Permission denied in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 598
Warning: rename(/var/tmp/0.inc1Sj1NL,../../../../g2data/cache/module/core/0/0/0.inc): No such file or directory in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 465
Warning: mkdir(../../../../g2data): Permission denied in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 598
Warning: rename(/var/tmp/0.incBebOFH,../../../../g2data/cache/module/core/0/0/0.inc): No such file or directory in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 465
Notice: Only variable references should be returned by reference in /www/t/theklingsnet/htdocs/modules/gallery2/lib/adodb/adodb.inc.php on line 2832
Warning: mkdir(../../../../g2data): Permission denied in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 598
Warning: rename(/var/tmp/GalleryFactoryHelper_loadRegistry.inc90l99R,../../../../g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc): No such file or directory in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 465
Notice: Only variable references should be returned by reference in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GallerySession.class on line 614
Warning: rename(/var/tmp/3b0bf057b24e806e932e1a184a4ffb52ylg5ME,../../../../g2data/sessions/3b0bf057b24e806e932e1a184a4ffb52): No such file or directory in /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/GalleryPlatform.class on line 465
Debug Redirect
Not automatically redirecting you to the next page because we're in debug mode
Continue to the next page
--------------------------------------------------------------------------------
file_exists(../../../../g2data/cache/module/core/0/0/0.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'module' AND g2_PluginParameterMap.g_pluginId = 'core' AND g2_PluginParameterMap.g_itemId = 0
--------------------------------------------------------------------------------
file_exists(../../../../g2data/cache/module/core/0/0) file_exists(../../../../g2data/cache/module/core/0/0/0.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'module' AND g2_PluginParameterMap.g_pluginId = 'core' AND g2_PluginParameterMap.g_itemId = 0
--------------------------------------------------------------------------------
file_exists(../../../../g2data/cache/module/core/0/0) file_exists(../../../../g2data/cache/module/core/0) file_exists(../../../../g2data/cache/module/core) file_exists(../../../../g2data/cache/module) file_exists(../../../../g2data/cache) file_exists(../../../../g2data) file_exists(../../../..) is_dir(../../../..) mkdir(../../../../g2data, 755) rename(/var/tmp/0.inc1Sj1NL, ../../../../g2data/cache/module/core/0/0/0.inc) file_exists(../../../../g2data/cache/module/core/0/0) file_exists(../../../../g2data/cache/module/core/0) file_exists(../../../../g2data/cache/module/core) file_exists(../../../../g2data/cache/module) file_exists(../../../../g2data/cache) file_exists(../../../../g2data) file_exists(../../../..) is_dir(../../../..) mkdir(../../../../g2data, 755) rename(/var/tmp/0.incBebOFH, ../../../../g2data/cache/module/core/0/0/0.inc) file_exists(../../../../g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_FactoryMap.g_classType, g2_FactoryMap.g_className, g2_FactoryMap.g_implId, g2_FactoryMap.g_implPath, g2_FactoryMap.g_hints FROM g2_FactoryMap ORDER BY g2_FactoryMap.g_orderWeight ASC
--------------------------------------------------------------------------------
file_exists(../../../../g2data/cache/module/_all/0/0) file_exists(../../../../g2data/cache/module/_all/0) file_exists(../../../../g2data/cache/module/_all) file_exists(../../../../g2data/cache/module) file_exists(../../../../g2data/cache) file_exists(../../../../g2data) file_exists(../../../..) is_dir(../../../..) mkdir(../../../../g2data, 755) rename(/var/tmp/GalleryFactoryHelper_loadRegistry.inc90l99R, ../../../../g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator file_exists(../../../../g2data/sessions/3b0bf057b24e806e932e1a184a4ffb52) file_exists(../../../../g2data/sessions/3b0bf057b24e806e932e1a184a4ffb52) file_exists(/www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc) realpath(/www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/../../..) Binding text domain: modules_core -> /www/t/theklingsnet/htdocs/modules/gallery2/modules/core/locale file_exists(../../../../g2data/versions.dat) rename(/var/tmp/3b0bf057b24e806e932e1a184a4ffb52ylg5ME, ../../../../g2data/sessions/3b0bf057b24e806e932e1a184a4ffb52)
Posts: 32509
how should i know if you can just switch to php 5.
my ISP has such an option in the cpanel and G2 works in PHP 5.0.3.
but for me, g2 also work on PHP 4.4.0 / linux and PHP 4.4.0 / winxp.
just try, don't know why you have issues, so they might as well go away with a php version change.
Posts: 40
I will definately try that. Regarding the debug info... Do you see anything that catches your eye?
Posts: 32509
Warning: mkdir(../../../../g2data): Permission denied in
it can't write to subfolders of g2data.
try a clean install, with an empty g2data folder.
if you then get the same problem / mkdir warning after the install, you have a serious problem.
Posts: 40
This is a clean install. had all files deleted and removed from the server. I'm looking into switching to PHP 5 right now. I did verify, also, that the g2data file was writable, 777, and the subfolders were 755 (I changed the subfolders to 777 to see if that made any difference and no.
I will let you know what happens when I switch to PHP 5
Posts: 40
Ok, I've got php.ini version 5 installed. going to the main.php file gives no warnings or erros, only the permission denied messages. This being the case I'm removing the files and the db entries, and doing a clean install of gallery 2. I will let you know.
Thanks for the help so far Valiant
Posts: 40
OK UPDATE!!
going to the installer, I was able to get past the login.txt file successfully, but after it completed the next step, it said I had a bad login.txt file again. So I uploaded it again with the new digits and went through this again. It seems to be looping at random spots during the installation now. Wondering if the php.ini file needs to be tweaked some more. Haven't gotten to the point where it creates the config file yet, but still trying.
Was able to get all the way to the installation type step after numerous tries but failed again right after that.
Posts: 40
So, now, i've been able tot get all the way to step 7, but then it pretty much takes me back to the step where I tell it the location of my g2data folder. sometimes this page even looks like the fon't is off (big font's) but usually it's normal.
Posts: 40
mostly a note to self to keep track of my errors
Stack Trace:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 253 (MySqlDatabaseStorage::error)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 210 (MySqlDatabaseStorage::_getConnection)
in modules/core/classes/GalleryStorage.class at line 728 (MySqlDatabaseStorage::init)
in install/steps/InstallCoreModuleStep.class at line 72 (GalleryStorage::isInstalled)
in install/index.php at line 167 (InstallCoreModuleStep::loadTemplateData)
Debug Output:
file_exists(../../../../g2data/cache/module/core/0/0/0.inc)
mysql error: [2005: Unknown MySQL server host 'mysql12.powweb.com ' (1)] in
CONNECT(mysql12.powweb.com , ?, ?, theklings_net)
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL
server host 'mysql12.powweb.com ' (1) in
/www/t/theklingsnet/htdocs/modules/gallery2/lib/adodb/drivers/adodb-mysql.inc.php
on line 348
mysql12.powweb.com : Unknown MySQL server host 'mysql12.powweb.com '
(1)
file_exists(../../../../g2data//cache/entity)
file_exists(../../../../g2data//cache/theme)
file_exists(../../../../g2data//cache/module)
file_exists(../../../../g2data//cache/derivative)
mysql error: [2005: Unknown MySQL server host 'mysql12.powweb.com ' (1)] in
CONNECT(mysql12.powweb.com , ?, ?, theklings_net)
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL
server host 'mysql12.powweb.com ' (1) in
/www/t/theklingsnet/htdocs/modules/gallery2/lib/adodb/drivers/adodb-mysql.inc.php
on line 348
mysql12.powweb.com : Unknown MySQL server host 'mysql12.powweb.com '
(1)
realpath(/www/t/theklingsnet/htdocs/modules/gallery2/modules/core/classes/../../../)
Posts: 32509
as to your installer problems (authentication), maybe deleting your PHPSID cookie in your browser may help.
@mysql: error: can't help there. php says this db host isn't ok.
Posts: 40
Clearing out the cookies and offline files seemes to have fixed it but I still have the upgrade loop going on.
Here is the debug info when trying to go to main.php.
I'm going to try the fix you mentioned at this post...
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=32072&postdays=0&postorder=asc&start=0&sid=0102ff0898ca14af3405bbc630942913
Posts: 40
Ok, so after more tshooting, I am back where I didn't want to be. Looping at the authenticate step. I even tried doing the install from a different location (work pc) to see if that would do anything, and it appears not. When it asked me to upload the login.txt file, I uploaded it from my original computer (laptop) which has a completely separat wan ip address, nogo.
Current version is beta 4+ dated 8/2 4am
Posts: 32509
you understand that you see a different login.txt key when you access the auth step from different browsers / computers, right?
i guess you should clear your cookies again. to get past the auth step.
Posts: 40
yes i do, so i didn't pull it up on the second computer, i just created the text file and uploaded it....
another note, 19 times out of 20, the link to the login.txt file that the installer creates for you is not the same # as what is displayed on the page.
Posts: 32509
can't confirm any of the issues you're having there. just checked the thing you say about the login.txt downloadable file.
and i don't see others with a similar problem. you must have a very bad php / apache setup there.
Posts: 40
I'm willing to bet the guy who's link I provided a few posts up has the same problem with his looping. The link gives a different key than what is displayed.
Posts: 40
Valiant, if I create a temporary ftp and mysql account for you, would you be willing to try the install for me?
Posts: 32509
if we offered installing for free, everyone would ask us to install G2/G1 for them.
see: http://gallery.menalto.com/modules.php?op=modload&name=GalleryPaidSupport&file=index
i don't even do it for money...
your case seems to be pretty hopeless. one would have to spend quite some time to find out what exactly is screwed up in your config/setup.
honestly, i'd report powweb that there are really strange issues and use another gallery software. i guess G1 works on powweb, there's also coppermine and other good gallery software products.
Posts: 40
I'm close, don't give up now!!!!!
Install is done, however had to stick with adodb error?
Issue 1
To get rid of the adodb error, I had to install version 5 php.ini on my webroot. This, and possibly the .htaccess is what was causing the authentication loop.
Resolution 1
Remove the version 5 php.ini file and htaccess ( I didn't try one at a time, was focused on completing the install).
Issue 2
Removing the 2 files forces me to get the adodb error.
Resolution 2
What damage does having this error create? I'm turning debug on to see whats going on with both versions of php.
I will let you know!
Posts: 40
note to self...
php 4.4.0 debug
Posts: 40
note to self
.htaccess to php version 5
Posts: 40
note to self
php version 5 php.ini file
Posts: 40
According to the Upgrader I have version 9.3.3
I had to remove the php.ini file again to get past the authenticate step.
Since I had to remove it I get the adodb error on the Upgrade modules step and then again on the Finished page.
Going to read up on that fix you mentioned in the other topic.
Posts: 40
In the above mentioned post you say
I know this is an older version, but I thought I'd ask anyway. I looked at my tables and saw that there was no "module core 0 default.layout" row
Is this on purpose?
Posts: 32509
yes, there are not themes anymore in G2.
Posts: 6
I'm having the exact same issue with powweb. Very similar errors. I am using the beta4 version installed to a clean directory with the correct permissions granted.
On step 8 I get:
Notice: Only variable references should be returned by reference in /www/h/hostetterorg/htdocs/bbiphotos/lib/adodb/adodb.inc.php on line 2832
Fatal error: Cannot instantiate non-existent class: gallerygroup in /www/h/hostetterorg/htdocs/bbiphotos/modules/core/CoreModuleExtras.inc on line 1373
The first error is listed about 40 times, the last only once (and last).
One add'l thing happening to me is that FTP uploads with powweb seem very flaky. I had to retry like 15 times over hours to get it all uploaded. And during the system checks I get this:
Gallery file integrity Warning
# modules/core/classes/interfaces/GalleryGroup.inc
# modules/core/po/no_NO.po
# modules/quotas/classes/GNUmakefile
# modules/exif/classes/GNUmakefile
# modules/migrate/test/data/albums/album04/album.dat
# modules/netpbm/classes/NetPbmToolkit.class
# modules/webcam/po/strings.raw
# themes/matrix/po/ja_JP.po
the filesizes, dates and times are the same on the remote server as from the gallery package. I'll try reuploading them but honestly I don't see how those files could cause these errors. I guess powweb has an issue with PHP.
Posts: 32509
d_hos, i can't do anything about the PHP notices. as i explained in this topic, powweb has a very weird php engine. i've eplained in this thread how to get rid of them.
@fatal error / missing / modified files:
reupload the missing/modified files to fix your fatal error problem.
as long as you have a file integrity warning, you don't have to try to install g2.
Posts: 32509
@powweb users:
you are not the only one with the strange PHP Notices:
see my bug report:
http://bugs.php.net/bug.php?id=34009
Posts: 6
Thanks valient, I read the thread closely and saw some suggestions on how to resolve this, I was just posting to verifying that it's powweb.
I too am having the problem with the login authentication failing at various points during the install process. I also noticed that the authentication string sometimes repeats. Also the link to download the text file containing the string sometimes doesn't contain the displayed string, in fact it usually contains the NEXT string that gets offered. Isn't that strange.
I gave up when finally I couldn't get any login authentication string be accepted at all. I deleted everything gallery2 and I'm trying again today. If I can't get it working then I'll just use G1 for which powweb offers a preloading option.
I had tried using the recommended ini for the latest beta of PHP 5, also found how you can use PHP5 with powweb instead of 4.4, neither of those solved the problem with the PHP notices or authentication though.
Posts: 6
This seems to solve the authentication looping problem. I was having a similar problem with G1 where logging in as admin wouldn't 'stick'.
http://forum.powweb.com/showthread.php?t=49830
"We've already seen a number of tickets and support requests on sessions not being saved."
"Edit the session.save_path variable (php.ini) to point to somewhere in your own webspace."
"Since session files will be saved directly to your webspace, you will either need to log into FTP to delete them manually every so often (depending on the traffic of your site), or set up a cron job to automatically sweep this folder"