Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey,
I'm trying to enable the module on my site, and when I do I get an Error 500 message on user account page and when I try to administer flags.
I looked at the log files and this is the error I get:
PHP Fatal error: Class 'flag_flag' not found in /srv/www/site.com/public_html/sites/all/modules/flag/flag.module on line 890
I've actually tried disabling and uninstalling and then installed version 1 but I get the same error.
I'm running Pressflow / project Mercury on Linode with php 5.3
Thanks
Comments
Comment #1
gorgo CreditAttribution: gorgo commentedUPDATE
Just did a clean install and got flag (V2) to work without any errors.
Than I had to restart apache and the errors came back. Can't access the site until I disable flag.
This time the error is:
PHP Fatal error: Class 'flag_flag' not found in /srv/www/site.com/public_html/sites/all/modules/flag/flag.module on line 1424
When facebook-style statuses is enabled I also get:
PHP Fatal error: Class 'flag_flag' not found in /srv/www/site.com/public_html/sites/all/modules/facebook_status/facebook_status.flag.inc on line 12, referer: http://site.com/admin/settings/varnish
But this error goes away when I disable flag too.
Comment #2
gorgo CreditAttribution: gorgo commentedUPDATE 2
I tried restoring me server to a snapshot I took while flag was still working with no errors, and it doesn't work now either.
* Error 500 on user and flag admin pages
* PHP Fatal error: Class 'flag_flag' not found in /srv/www/site.com/public_html/sites/all/modules/flag/flag.module on line 1424
If I enable Facebook style statuses WITH flag I get this error too:
PHP Fatal error: Class 'flag_flag' not found in /srv/www/site.com/public_html/sites/all/modules/facebook_status/facebook_status.flag.inc on line 12, referer: http://site.com/admin/settings/varnish
Does anybody here have any idea why?
Comment #3
gorgo CreditAttribution: gorgo commentedUPDATE 3
Problem solved!
If anyone else has a similar problem, for me it was a matter of setting apc.include_once_override to 0 in apc.ini file
Comment #4
Tb817 CreditAttribution: Tb817 commentedWhere can I find the apc.include_one_override at?
Comment #5
Tb817 CreditAttribution: Tb817 commentedWhere is this located? apc.include_once_override