"Report this" errors - is there a fix for this?

I have enabled the standard "reportedcontent" plugin that came with Elgg 1.6.1. But if I click on any of the "report this" links I get the following error. Anybody have any idea why? Thanks.

doug

You don't have permission to access /mod/reportedcontent/add.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

  • Sounds like the permissions for that file are set wrong.  Make sure to set them readable to at least the web server...this usually means 644 (or user read/write, group read, and world read).

  • Hi, Brett.

    I just checked and that add.php file's permissions are set to 644.

    doug

     

  • Hrm....Not sure about this one without more information then.  Do the error logs report anything?  Do you have any sort of security extensions enable for PHP?  What are the permissions of working files for the other mods?

  • Spot-checking around, the permissions for the working files for the other mods all seem to be the same - 644.

    I don't see an error in the error_log, but I do see these warnings from time to time that seems to come in sets of 5:

     

    [16-Jan-2010 20:03:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: undefined symbol: compiler_globals in Unknown on line 0 [16-Jan-2010 20:03:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0 [16-Jan-2010 20:03:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: executor_globals in Unknown on line 0 [16-Jan-2010 20:03:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/lib/libmysqlclient.so.15: version `libmysqlclient_15' not found (required by /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so) in Unknown on line 0 [16-Jan-2010 20:03:34] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixed.5.2.lin' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ixed.5.2.lin: undefined symbol: executor_globals in Unknown on line 0
  • Those seem unrelated, but you may want to check with your provider why you're getting these errors, which are the results of loading extensions without the proper support libs on the server.

    I suppose a simple quesiton that never occured to me is does that file actually exist where the server thinks it does?  If possible, what is the HTTP error code?

  • Yes, the file actually exists. That's why I was able to confirm the 644 permission settings for it! :)

    The complete error message is:

     

    You don't have permission to access /mod/reportedcontent/add.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    So I guess the 404 has to do with some ErrorDocument and the permission looks like a separate problem. But /mod/reportedcontent/add.php does exist.

    doug

  • @Doug
    You did not follow Brett's advice !
    Ask your host to whitelist /disable mod_security on your account
    END-OF-STORY
    TA-TA

  • Hi, Dhrup.

    Actually, Brett said those entries

    1. appear unrelated but to 
    2. check with my provider about why those errors are occuring
    which I have sent off a support request on.
    So I think I did follow Brett's advice. :)
    Those warnings are not occurring during the "report this" request anyway, but I have asked about it.
    Thanks,
    doug
  • I was having the same problem with "bookmark this" link, the problem was that the script was hitting mod_security rule on the server. I contacted my host and they corrected it.

  • Hi, Jayadeep. I do have a request in to my host about it, so I hope that it solves the problem.

    Thanks,

    doug