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

gorgo’s picture

Priority: Normal » Critical

UPDATE

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.

gorgo’s picture

UPDATE 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?

gorgo’s picture

Status: Active » Closed (fixed)

UPDATE 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

Tb817’s picture

Issue summary: View changes

Where can I find the apc.include_one_override at?

Tb817’s picture

Where is this located? apc.include_once_override