Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From
- Timely Support Agent
- Date
- 22 days ago
- Message
- Hi Daniel,
- errors like this are caused by APC:
- https://bugs.php.net/bug.php?id=59298
- If you go to the file you see
- if ( ! class_exists( 'WP_FacebookApiException' ) ):
- /**
- * Thrown when an API call returns an exception.
- *
- * @author Naitik Shah naitik@facebook.com
- */
- class WP_FacebookApiException extends Exception
- with APC enabled class_exists( 'WP_FacebookApiException' ) calls unfortunately are somehow broken. This is a known PHP bug. You can:
- 1) update the PHP version to the latest
- 2) try to up the memory allowed for APC as usually errors like this means that cache memory has ended.
- 3) turn off APC completely
- you should try number 1 and 2 before going to number 3 as APC speeds up the site a lot as it does opcode caching. There are no other known fixes for this, until the PHP team finally decides they need to fix this bug
- Thanks
- From
- Timely Support Agent
- Date
- 2 days ago
- Message
- ---------------------------------------------
- RE: WP_FacebookApiException
- ---------------------------------------------
- I would like to propose another solution to this problem. Namely, to create a patch or admin-option for the plugin that allows an administrator to disable all things Facebook. If this is a known PHP bug, persistent enough to have affected WP installations at a variety of hosts, then it seems to me that the onus is on you, the plugin author, to allow a way to avoid the bug. Disabling the Facebook API would seem to solve that problem. At this point, my installations have no interaction whatsoever with facebook.
- ---------------------------------------------
- RE: Missing class information for in .../wp-content/plugins/all-in-one-event-calendar/lib/lessphp/lessc.inc.php
- ---------------------------------------------
- Your most recent reply has not made mention of this error. Would you prefer I open up a separate thread for this?
- Thanks,
- From
- Timely Support Agent
- Date
- 2 days ago
- Message
- (I have elected to open a separate thread for "Missing class information for in .../wp-content/plugins/all-in-one-event-calendar/lib/lessphp/lessc.inc.php")
- From
- Timely Support Agent
- Date
- 2 days ago
- Message
- Hi Daniel,
- both problem are related to that APC bug that I've linked to you. The problem is that in certain case APC (that is a software layer that cache information about classes to speedup the response) exhaust its memory and start losing information about the class used. The Less class or the Facebook class doesn't have anything in particular that creates problem, it's just that when it's their turn to be loaded the memory is probably near it's limit, if I remove all the classes related to Facebook for example you will get the same error in the class loaded next to that.
- Thanks
- From
- Timely Support Agent
- Date
- a day ago
- Message
- Do you recommend making these settings within wordpress using ini_set, or in php.ini?
- Thanks,
- From
- Timely Support Agent
- Date
- a day ago
- Message
- Hi Daniel,
- I think that you have to work on the php.ini file, I'm not sure but I don't think that you can modify APC parameters using ini_set(). The best solution would be to increase its memory.
- Thanks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement