Advertisement
danielschulzjackson

Disabling APC resolved 2 freuqent fatal AI1EC plugin errors

Dec 3rd, 2013
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. From
  2. Timely Support Agent
  3. Date
  4. 22 days ago
  5. Message
  6.  
  7. Hi Daniel,
  8. errors like this are caused by APC:
  9.  
  10. https://bugs.php.net/bug.php?id=59298
  11.  
  12. If you go to the file you see
  13.  
  14. if ( ! class_exists( 'WP_FacebookApiException' ) ):
  15. /**
  16. * Thrown when an API call returns an exception.
  17. *
  18. * @author Naitik Shah naitik@facebook.com
  19. */
  20. class WP_FacebookApiException extends Exception
  21.  
  22. with APC enabled class_exists( 'WP_FacebookApiException' ) calls unfortunately are somehow broken. This is a known PHP bug. You can:
  23.  
  24. 1) update the PHP version to the latest
  25. 2) try to up the memory allowed for APC as usually errors like this means that cache memory has ended.
  26. 3) turn off APC completely
  27.  
  28. 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
  29.  
  30. Thanks
  31. From
  32. Timely Support Agent
  33. Date
  34. 2 days ago
  35. Message
  36. ---------------------------------------------
  37. RE: WP_FacebookApiException
  38. ---------------------------------------------
  39. 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.
  40.  
  41. ---------------------------------------------
  42. RE: Missing class information for in .../wp-content/plugins/all-in-one-event-calendar/lib/lessphp/lessc.inc.php
  43. ---------------------------------------------
  44.  
  45. Your most recent reply has not made mention of this error. Would you prefer I open up a separate thread for this?
  46.  
  47. Thanks,
  48. From
  49. Timely Support Agent
  50. Date
  51. 2 days ago
  52. Message
  53. (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")
  54. From
  55. Timely Support Agent
  56. Date
  57. 2 days ago
  58. Message
  59. Hi Daniel,
  60. 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.
  61.  
  62. Thanks
  63. From
  64. Timely Support Agent
  65. Date
  66. a day ago
  67. Message
  68. Do you recommend making these settings within wordpress using ini_set, or in php.ini?
  69.  
  70. Thanks,
  71. From
  72. Timely Support Agent
  73. Date
  74. a day ago
  75. Message
  76. Hi Daniel,
  77. 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.
  78.  
  79. Thanks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement