• Resolved jersey-peeps

    (@jersey-peeps)


    Hi there ??

    Some users are getting the following message when trying to upload photos to a new listing ‘Invalid Session. Please refresh the page and try again’

    I have tried to duplicate this issue myself but am unable to do so, the last person that had this issue was using Chrome and Windows 7.

    I’m using Wangaurd and Cloudflare, both of which are required so can’t really disable them.

    As for caching im using wp-rocket again don’t see this being a problem?

    I did notice that some other users of the plugin have mentioned this around 7 months ago but didn’t want to jump in on their post here

    https://www.ads-software.com/plugins/wpadverts/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i am not really sure where this issue might be coming from, the only work around i can think of would be to open file wpadverts/includes/ajax.php and remove following code

    if( ! check_ajax_referer( 'adverts-gallery', '_ajax_nonce', false ) ) {
            echo json_encode( array(
                "result" => 0,
                "error" => __( "Invalid Session. Please refresh the page and try again.", "adverts" )
            ) );
    
            exit;
        }

    this will disable, i am afraid that right now i cannot really offer a better solution as i wasn’t able to replicate this issue.

    I have been having the same problem. At first I thought it only happened when I was using my ADMIN USERID to test. But, after going live with our Classifieds, our users started having the same problem.

    I had to comment the code out as suggested by Greg in several methods:

    function adverts_gallery_update_order()
    function adverts_gallery_delete()
    function adverts_delete()
    function adverts_gallery_update()

    Question: This seems to possibly open a security hole? Has a better solution been found yet? It is certainly duplicatable on our site: Audioseastories.com

    Daryl()

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image upload problems’ is closed to new replies.