Ticket #192 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

PHP Fatal error with ea0.9.5 and Gallery 2.1.2

Reported by: rukka74 Assigned to: somebody
Priority: major Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

Environment: php 5.1.2 / apache 1.3.33 / linux (armeb)

with ea enabled errors like the following appears when using Gallery 2.1.2 Fatal error: Call to undefined method GalleryPhotoItem::onLoad() in /volume1/web/gallery/modules/core/classes/helpers/GalleryEntityHelper_simple.class on line 91

The onLoad() method is used by a number of other classes too and is inherited from GalleryEntity?.class. The error appears whenever onLoad() is used.

On other systems the problem seems not to occur and on some it does. No dependency of php version and apache could be found.

tried different ini settings and compile configs without success. see also http://gallery.menalto.com/node/54210

Gallery works perfectly if ea is either disabled or all .class files are filtered out, hence I assume it to be a ea problem.

Change History

10/20/06 08:31:19 changed by ahndee

I observe the same problem here - it seems as if something in r256 is causing the problem - I am still running svn version 255 since anything later does not seem to work (I looked at r256 but couldn't really make much sense of it...)

10/20/06 11:45:05 changed by rukka74

probably a terribly stupid question: how can I get the svn255 sources? So that I could verify.

10/20/06 19:25:29 changed by ahndee

You need subversion installed on your machine and then get that specific version:

svn --username anonymous --password anonymous co -r255 http://dev.eaccelerator.net/eaccelerator/trunk eaccelerator

10/21/06 14:34:50 changed by rukka74

Thanks, unfortunately in my machine the problem also occurs when using svn255.

10/21/06 21:00:59 changed by ahndee

What are you passing to configure? My settings are

./configure \
--without-eaccelerator-encoder \
--without-eaccelerator-loader \
--with-eaccelerator-content-caching \
--with-php-config=/usr/local/php5/bin/php-config \
--with-eaccelerator-userid

My system parameters: PHP 5.2.0rc6/Apache 2.2.3/MacOSX 10.4.8 (both PHP and Apache are compiled/installed myself, not the OS default versions)

10/21/06 21:03:15 changed by ahndee

Probably a stupid question - you did issue a 'make clean' before running make, right?

10/22/06 17:51:49 changed by rukka74

Well, yes I did make clean :-)

I didn't pass "--with-eaccelerator-content-caching" to the configure, so I rebuilt it with the same configure parameters than you, however the problem's still there (and yes I did clean the cache)

I use Apache/1.3.33 (Unix) PHP/5.1.2 Linux 2.4.22-uc0 on armv5b

Could it be related to some other setting in php.ini or even php compiler options?

01/30/07 12:20:01 changed by bart

I saw the error to with php 5.2 and trunk eA but I'm not able to reproduce it outside gallery. When I cleared eA cache the errors just disappeared and I'm not able to get them back. Really strange bug.

02/13/07 18:51:43 changed by bart

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 0.9.6.

This bug should be fixed in rev [294]