• Resolved ronald070

    (@ronald070)


    Hello,

    I have setup this Football Pool plugin.
    Now i try to do a score calculation, but I get the message “Forbidden”
    I get this message after I have updated the results of a game. After saving it is calculating the scores with a popup. This popup is showing in red the text: Forbidden.

    Any tips on how to solve this?

    Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AntoineH

    (@antoineh)

    Hi, this error text is not thrown by my plugin, so my first guess would be that it is a server configuration issue.

    First thing to check, is the error logs (PHP log and apache logs) to see if there is something that could give some extra information. You may want to ask your hosting provider for some assistance if you do not have enough knowledge of your server’s configuration.

    Edit: When you reach out to your hosting company, you can mention that WordPress would like to run AJAX requests to itself. I think that is the problem.

    Meanwhile, you can try to run the calculation without using AJAX calls. Add the following to your wp-config.php:

    define( 'FOOTBALLPOOL_RANKING_CALCULATION_NOAJAX', true );

    But it is best to solve the AJAX requests problem, because running the calculation in no_ajax mode is slow (and ugly ??).

    • This reply was modified 3 years, 10 months ago by AntoineH. Reason: added note for hosting company and no_ajax constant

    We had this too, after we used Force Calculation once, it was gone.

    Thread Starter ronald070

    (@ronald070)

    Hello @antoineh @sezercik

    Thanks a lot for your reply and help. I have enabled NOAJAX now, but still something goes wrong. I have also enable my wp debuglogging.

    I see this messages: pool_rd_scorehistory_s1_t1′ doesn’t exist (For a TRUNCATE and DELETE command)

    I have check my database but this table is not there, instead I have: pool_rd_scorehistory_s1_t2

    (or has this maybe to do with The Force calculation I tried)

    Any tips!

    • This reply was modified 3 years, 10 months ago by ronald070.
    Thread Starter ronald070

    (@ronald070)

    Hi, I run my own server using cPanel.

    Perhaps, do you know this AJAX this what is forbidden. Is this an Apache issue or has this to do with php?

    Thanks

    Plugin Author AntoineH

    (@antoineh)

    I see this messages: pool_rd_scorehistory_s1_t1′ doesn’t exist (For a TRUNCATE and DELETE command)

    Fixing this problem should be easy. Make sure you have the “keep data on uninstall” setting for the plugin on true (it is by default). Then deactivate the plugin and activate it again. This should reinstall any missing tables.

    If the table still does not exist, you can also go into phpmyadmin and copy the pool_rd_scorehistory_s1_t2 table (structure only).

    Perhaps, do you know this AJAX this what is forbidden. Is this an Apache issue or has this to do with php?

    Sorry, can’t help with this. I have close to zero knowledge of server configs ??

    Thread Starter ronald070

    (@ronald070)

    Hello @antoineh,

    Thank you for you help. I have reinstalled the plugin for the missing tables and also disabled Ajax for the calculations. And now it is working ??

    Thank you for the great support and help!!!

    Also very cool plugin!!!

    • This reply was modified 3 years, 9 months ago by ronald070.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Calculate scores give message “Forbidden”’ is closed to new replies.