• Resolved steve92

    (@steve92)


    When I click Manage subscriptions (under the textarea) it shows Page not found

    Schermata-2020-10-26-alle-09-46-25

    But the subscriptions are there

    Schermata-2020-10-26-alle-09-48-55

Viewing 15 replies - 31 through 45 (of 58 total)
  • Thread Starter steve92

    (@steve92)

    I managed to focus and 2 files that give problems:

    subscribe-to-comments-reloaded.php
    wp_subscribe_reloaded.php

    I did copy-paste old v. to new v. and displays the Manage your subscriptions correctly page.
    So the solution lies in these 2 files, but I don’t know what to change.

    Plugin Author WPKube

    (@wpkube)

    Hi @steve92

    subscribe-to-comments-reloaded.php Only change in that file since version 190214 was the call to the function setUserCookie() being changed to set_user_cookie(). It’s not the cause of the 404, but the function is defined in wp_subscribe_reloaded.php so if using the old wp_subscribe_reloaded.php it will throw a PHP error because the function does not exists.

    As for wp_subscribe_reloaded.php, you said last week that you used the 190214 and still got a 404:

    I also tried to completely replace the wp_subscribe_reloaded.php v.200813 file with v.190214 it always shows 404 error
    This means that the problem is not in this file.

    I guess there was some problem with the testing itself and the 404 issue is in wp_subscribe_reloaded.php

    So, now that the testing can be done properly, use the latest version of the plugin and just replace wp_subscribe_reloaded.php with this modified file.

    Thread Starter steve92

    (@steve92)

    I replaced the wp_subscribe_reloaded.php file you gave me and now the plugin no longer gives a 404 error.
    I think we have solved it.

    Plugin Author WPKube

    (@wpkube)

    Hi @steve92

    It’s just a test for debugging purposes, not a solution.

    First we isolated the issue to the wp_subscribe_reloaded.php' file and now we isolated it further to several lines of code in the function calleddefine_wp_hooks`

    Now we need to reintroduce one by one of those removed code parts until we get the 404 to show up again, at which point we’ll know which line exactly causes the issue and then figure out why the code causes it and fix, at which point it will be solved.

    Try this new modified file and let me know if the 404 shows up again.

    Thread Starter steve92

    (@steve92)

    With this file it shows no 404 error, is good.

    Plugin Author WPKube

    (@wpkube)

    Hi @steve92

    That’s the original file with only the if statement (the one I mentioned at the start) removed. this one.

    Here’s another modification of the file.

    This one won’t cause the 404, it will show an array var_dump at the top of the page. Copy/paste that in here.

    Will look something like this:

    array (size=2)
      0 => string '/stcr' (length=12)
      1 => string '/' (length=1)

    Different in your case of course, but that’s the structure.

    Thread Starter steve92

    (@steve92)

    array(2) { 
    [0]=> string(0) "" 
    [1]=> string(47) "/?srp=1319&srk=e2c8ebced79395da9bf19b45c38c65c7" 
    }
    Plugin Author WPKube

    (@wpkube)

    Try this one

    Similar to before, but instead of the error it will only show either true or false

    Thread Starter steve92

    (@steve92)

    Show: true

    Plugin Author WPKube

    (@wpkube)

    Try this one and let me know if you’re getting a 404 or not.

    Thread Starter steve92

    (@steve92)

    Show 404 error.

    Plugin Author WPKube

    (@wpkube)

    Hi @steve92

    Retry the previous one, does it still show true?

    Thread Starter steve92

    (@steve92)

    Yes true again

    Plugin Author WPKube

    (@wpkube)

    But no 404, it’s showing the page properly, correct?

    Thread Starter steve92

    (@steve92)

Viewing 15 replies - 31 through 45 (of 58 total)
  • The topic ‘Manage subscriptions, Page not found’ is closed to new replies.