Segmentation Fault when installing on fc12
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Hi, I am having some problems installing gallery2.3.1 from yum on fc12. I have the following packages installed. Gallery2 2.3.1-1.fc12 Please find attached install log. Please help. Thanks
|
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
Apparently it's a known bug in PHP. Try some stuff here: ____________________________________________ |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Hi, Thanks for the response. I had tried the zend.enable_gc=Off however this didnt work. I will try hacking the main.php code and see how I go. Edit: Still no go with adding the exit at the end of main.php. Edit: I downgraded php to 5.3.0 and received a new error as part of the install. Catchable fatal error: Object of class GalleryStorageExtras could not be converted to string in /usr/share/gallery2/lib/adodb/drivers/adodb-mysqli.inc.php on line 98 Warren |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Hi, Thanks for the response. Yes this is gallery 2.3.1. However it is from the fedora repo. Will give it a try from this site. OK tried it from this site. Appears to be same error. Catchable fatal error: Object of class GalleryStorageExtras could not be converted to string in /usr/share/gallery2/lib/adodb/drivers/adodb-mysqli.inc.php on line 98 Will look at downgrading the php.. Will need to find a repo that has it as the fedora ones dont appear to. Thanks again. |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
wazh -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
All done.. However new error. Catchable fatal error: Object of class GalleryStorageExtras could not be converted to string in /usr/share/gallery2/lib/adodb/drivers/adodb-mysqli.inc.php on line 99 These are the changes made. /* |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
wazh Change it to: /* I suggest a simple fix which would enable adodb and mysqli driver to read connection options from the standard mysql configuration file /etc/my.cnf - "Bastien Duclaux" <bduclaux#yahoo.com> */ var_dump($this->optionFlags); foreach($this->optionFlags as $arr) { mysqli_options($this->_connectionID,$arr[0],$arr[1]); } Copy and paste the output here afterwards. PS. Do you have any php accelerators installed? -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
oooop sorry I started a reply on that. No Accelerators installed. Still a no go.. Catchable fatal error: Object of class GalleryStorageExtras could not be converted to string in /usr/share/gallery2/lib/adodb/drivers/adodb-mysqli.inc.php on line 98 |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
wazh -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
will get back and check. But pretty sure I downgraded it to 5.3.0 which is what was in the fedora repos |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
wazh Something not right with your previous post. The error should be on Line 99 if you introduced an extra line into the file. Also, there has to be some sort of output before the error notice if var dump has run. Please recheck and make sure you are not getting a cached response or similar. Remember to paste the output from php -v separately as well |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Ok I was wrong.. PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 264 in Unknown on line 0 It appears I did downgrade it however because when I did that it removed roundcube/mediawiki/wordpress etc that when those got re-added later its upgraded it back to the above version |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
No problem. Now rerun and make sure the var dump line is included in Line 97 as shown earlier so we can find out what exactly is in your optionflags array. |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
I have encountered the same error message but on a different distro. Running a test box for eBox version 2 on Ubuntu Lucid Beta 1 with PHP 5.3.2 and Apache 2.2.14 I get the following error message in the install core section "Catchable fatal error: Object of class GalleryStorageExtras could not be converted to string in /var/www/gallery/lib/adodb/drivers/adodb-mysqli.inc.php on line 98" . No optimizers installed just plain simple PHP 5.3.2. Used latest nightly from gallery2.hu The modifications suggested in another post made no difference. Latest install log attached. |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
If you want to make a useful contribution (since wazh has decided to simply walk away) add the var dump line requested above and post the output. |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
Maybe not what you expected but following the changes to adodb-mysqli.inc.php and restarting the install process I din't get beyond the datbase creation. Tried with clearing the g2data directory but no processing beyond step 5, database creation. |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
mervyngroves -- |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
Yes missing ; array(1) { [0]=> array(2) { [0]=> int(5) [1]=> &object(GalleryStorageExtras)#24 (1) { ["_gs"]=> object(MySqlStorage)#21 (16) { ["_db"]=> object(ADODB_mysqli)#22 (88) { ["databaseType"]=> string(6) "mysqli" ["dataProvider"]=> string(6) "native" ["hasInsertID"]=> bool(true) ["hasAffectedRows"]=> bool(true) ["metaTablesSQL"]=> string(11) "SHOW TABLES" ["metaColumnsSQL"]=> string(22) "SHOW COLUMNS FROM `%s`" ["fmtTimeStamp"]=> string(13) "'Y-m-d H:i:s'" ["hasLimit"]=> bool(true) ["hasMoveFirst"]=> bool(true) ["hasGenID"]=> bool(true) ["isoDates"]=> bool(true) ["sysDate"]=> string(9) "CURDATE()" ["sysTimeStamp"]=> string(5) "NOW()" ["hasTransactions"]=> bool(true) ["forceNewConnect"]=> bool(true) ["poorAffectedRows"]=> bool(true) ["clientFlags"]=> int(0) ["substr"]=> string(9) "substring" [ |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Sorry guys. Fell asleep and then dragged myself to bed. Fixed the ; problem and got the following results. -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
OK cheers. Totally inconsistent results ... mervyngroves' post looks incomplete. wazh Info passed to the devs. Hopefully one of them can stay away from charms of G3 long enough to offer a fix. -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
HI Dayo, Many Thanks.. Will give that a go.. I have a couple of hours before I crash.. |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Ok increased the size. However it appears it wanted even more. -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
Went for a complete re-install again, created data directory in /var/www this time and the installation was completed. However the following merror message is all that appears when accessing the gallery /gallery/main.php. array(1) { [0]=> array(2) { [0]=> int(5) [1]=> int(0) } } array(1) { [0]=> array(2) { [0]=> int(5) [1]=> bool(true) } } |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
mervyngroves Notice you are on Ubuntu while the others are on F12. Probably related. -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Messed around a little. No Joy. It looks like I am out of the water till one of the dev's comes up with a fix. Thanks guys for all your input its been appreciated. Warren |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
Likewise here, no joy. Started with fresh installation and same error resulted. I've attached the var_dump content just in case someone might recognise the problem. However I have ot come to the conclusion that the current version of gallery2 is not compatible with php 5.3.2. I have had no issues with any installation up to this release of php. I will revert to ealier versions and hope that a solution will be forthcoming. |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
I would love to go back but it would be too much work. There are too many packages tied in and I would have to manually install them all. Anyway sit back with the gallery down - let the friends and family scream and they can just wait. |
||||
gboudreau
![]()
Joined: 2006-10-01
Posts: 40 |
![]() |
|||
The var_dump you posted are quite different from the expected value. Could you search for optionFlags in your complete gallery2 directory, like this: Quote:
cd your_gallery2_directory Here's what I get on my install: Quote:
lib/adodb/drivers/adodb-mysqli.inc.php:52: var $optionFlags = array(array(MYSQLI_READ_DEFAULT_GROUP,0)); As you can see, the only occurences of optionFlags in all the source code I have here are the array definition, on line 52, and it's use on line 97. If you just want to work around the problem, edit your config.php. Change this: Quote:
$storeConfig['type'] = 'mysqli'; into this: Quote:
$storeConfig['type'] = 'mysql'; This will stop using the file that is causing you issues... - Guillaume Boudreau |
||||
MattW
Joined: 2010-04-11
Posts: 3 |
![]() |
|||
Hi, I'm experiencing this issue on CentOS 5.4 with PHP 5.3.2. The workaround (using mysql instead of mysqli) did help. How can I help you with debugging? I do have some experience with PHP, but I did get incredibly lost in the gallery code during my first attempt to track this down. Matt |
||||
gboudreau
![]()
Joined: 2006-10-01
Posts: 40 |
![]() |
|||
Just do the grep command I give above, and show me what you get. - Guillaume Boudreau |
||||
MattW
Joined: 2010-04-11
Posts: 3 |
![]() |
|||
I actually did that and got the same result. I should have written that. But as I didn't touch the code, any other result would have been weird... Quote:
lib/adodb/drivers/adodb-mysqli.inc.php:52: var $optionFlags = array(array(MYSQLI_READ_DEFAULT_GROUP,0)); I'd dive into the code if you gave me a hint where I should look and/or insert debug outputs... |
||||
gboudreau
![]()
Joined: 2006-10-01
Posts: 40 |
![]() |
|||
You might find something by trying to see where the $this->optionFlags array changes. - Guillaume Boudreau |
||||
MattW
Joined: 2010-04-11
Posts: 3 |
![]() |
|||
No luck so far. The output of $this->optionFlags looks fine to me. Under normal conditions it's always (at initialization, before and after access) something like this: Quote:
array(1) { [0]=> array(2) { [0]=> int(5) [1]=> int(0) } } When apache crashes, I get a blank page and sadly no debug output at all. I can't even reproduce the output that has been posted earlier on this thread. I tracked the crash down to the redirect directly after the login, but I can't get any nearer. The huge framework makes it way too hard for me to understand where the database access is actually being triggered and/or which function is causing the problems. |
||||
mervyngroves
Joined: 2008-08-03
Posts: 92 |
![]() |
|||
The output of the grep process is indentical to your result. Changed config.php to storage type mysql instead of mysqli and got the following error: Error (ERROR_STORAGE_FAILURE) : Create Sequence failed for sequence: SequenceEventLog Log attached. |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
gboudreau wrote:
As you can see, the only occurences of optionFlags in all the source code I have here are the array definition, on line 52, and it's use on line 97. Actually, it is loaded with "MYSQLI_READ_DEFAULT_GROUP" which is a predefined constant that reads from the my.cnf file if a "MYSQLI_READ_DEFAULT_FILE" has not been defined. (http://dev.mysql.com/doc/refman/5.0/en/apis-php-mysqli.constants.html) So the issue is down to MySQL. I believe that those facing issues are on F12 which I gather uses MySQL 5.1.x. This, I am sure is the root cause of the issue. In essence, G2 is not compatible with MySQL 5.1.x (or perhaps a specific 5.1.x version) Perhaps if the folks having issues post their MySQL versions and even better still, their my.cnf file contents so we can confirm. -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
HI Guys, Output above is the same lib/adodb/drivers/adodb-mysqli.inc.php:52: var $optionFlags = array(array(MYSQLI_READ_DEFAULT_GROUP,0)); Package installed for mysql is mysql.x86_64 5.1.44-1.fc12 See attached my.cnf Warren |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
Don't worry about how many times the optionflags appear as it uses a predefined mysql constant. Run "rpm -qa|fgrep -i php" to list which php modules are installed and paste the output. After that, try downgrading MySQL to 5.1.3x. -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
HI, output as discussed [root@whitestar3 log]# rpm -qa|fgrep -i php |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
Not having my luck on the downgrade. Appears to be the same problem as php with too many dependancies on other software loaded. I think back to the wait for a fix again. sigh.. |
||||
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
|||
Sorry to hear that. I am afraid that nothing is being done regarding fixing this for now as all the focus is on G3 and you will either have to run a less bleeding edge distro than F12 or find an alternative to G2 ... G3 perhaps. -- |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
HI Dayo, Thanks for the comments. At this stage I think I will try anything and g3 might be the go. I installed it now. However I suppose the trick is getting the g2 data into it as I dont have a functioning g2. I have a xml backup of the database and the album data backed off but thats about it. Anyone got tips on how to get my g3 going quick with this info? |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
To import G2 data into G3, yes, G2 must be functioning properly. Unlike G1, which didn't have a DB, there are not just some files you can read from. The G2 importer in G3 uses the G2 API and thus requires a properly functioning G2 install. BTW, I've not ever had good luck with those xml "backups" from G2. If you want a reliable backup, do a dump from MySQL. I seriously doubt you'll be able to recover anything using the xml backup. |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
HI, I usually do the dumps etc when I do upgrades and other big things. I am starting to get a sick feeling in that I cant get the old g2 working as I have the problem above in order to import it into the new g3. I dont tend to have the time to fiddle to much and just stuck with making sure the system was up to date. sigh.. I am starting to think all the hundred's of images from g2 might be gone and I am going to have to do all that work again. |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||
A couple of options for getting them into G3. Setup a server that's not so "cutting-edge" (this is a server you want to be stable anyway, there's no reason to be running the latest and greatest release of software. Stable, up-to-date software is better than the latest release of something, but that's my opinion and I guess that's why I prefer Debian over Ubuntu or Fedora on servers any day because of that mentality) Get G2 running on it, along with G3, import into G3, migrate G3 to the new server Or you can use the Server Add option in G3 and import your images. You'll get the images into G3, but not have any titles, descriptions, comments, users, view counts, etc. ____________________________________________ |
||||
wazh
Joined: 2009-12-24
Posts: 18 |
![]() |
|||
OK.. mysql issued an update to 5.1.45-2.fc12 and I thought I wonder whether this fixes anything. installed gallery2 and lo and behold it started to work. Great. However in my dicking about to fix things I need to do a restore. I have a full backup from Jan and unfortunately I only have one of the gallery2 xml backups from just before I started to have any trouble. Is there any trick into restoring the xml at all? Please let me know. Thanks |
||||
nivekiam
![]()
Joined: 2002-12-10
Posts: 16504 |
![]() |
|||