Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1003238

    The website is giving some people a nonce error when they try to upload files using NinjaForms on the Enfold website, preventing them from uploading files. NF has investigated and determined that the issue is not with the form itself. The host company has vigorous caching and does not allow caching plugins, and has turned off caching for this one page in order to try to resolve the issue, but it has not succeeded. They have found errors in the host log that might be related to the issue, and they point to Enfold trying to upload files to a denied/not existing folder. Please advise on how to resolve the nonce error. Plugins are up to date.

    #1003560

    Hey m,

    The php warning will be fixed with the next update. If you want to fix it now please use ftp and navigate to wp-content/uploads/. Create a new folder in this directory and call it “avia_instagram_cache” (without the quotes). Then set the folder permission to 777.

    I also added this code to the enfold theme functions.php:

    
    error_reporting(0);
    

    to make sure no php warnings interfere with the upload process.

    Best regards,
    Dude

    #1005764

    Thanks, I created that folder. I can’t confirm whether or not it fixed the error, as I don’t usually get the nonce error on that page on my device. However, other upload functions on other web page forms are still getting nonce errors.

    #1006008

    Hi,

    Are you using the instagram widget? Try to disable the scheduled file check temporarily. Just add this code in the functions.php file:

    add_filter('avf_instagram_activate_cron', 'avf_instagram_disable_cron', 10); 
    function avf_instagram_disable_cron() {
    	return false;
    }

    Best regards,
    Ismael

    #1006160

    Is the Instagram widget the same thing as the theme/Enfold/Social Profiles/Social Icon/Instagram? If yes, I’ll delete it if that solves the problem. Otherwise, no, the Enfold Instagram widget in the Appearance/Widgets tab is not being used.

    #1006178

    Hi,

    To be honest I don’t see any reasons why the nonce error could pop up. The PHP warnings you posted are related to the instagram cache and will be fixed with the next update. They have also nothing to do with the nonce values which are generated by wordpress ( https://codex.wordpress.org/WordPress_Nonces ), in fact this function just tries to create a cache folder for instagram images in the wp-content/uploads/ folder. It does not manipulate or access the nonce values, etc.

    I read some bug reports (i.e. here: https://github.com/wpninjas/ninja-forms-uploads/issues/270#issuecomment-361279922 ) and they suggest it might be a caching issue. However you’ve already checked the cache configuration too :-/

    Best regards,
    Peter

    #1006241

    Thanks. The host has already turned off caching for that page. Still getting nonce errors. When will you release that theme update related to the Instagram cache? What else can be done other than replacing the Enfold theme?

    #1006249

    Should the line
    error_reporting(0);
    be removed again from the functions.php file? Is this error reporting important in troubleshooting and other functions?

    #1006341

    Hi,

    Remove it – you wouldnt need it again no :)

    Best regards,
    Basilis

    #1007436

    Any update on the next release that might resolve this file upload problem?

    #1007563

    Hi,

    There’s no ETA for the release but you can download the developer build (see link in preview content) which fixes the instagram cache issue. You can use ftp to install the update ( https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#ftp-install ).

    Best regards,
    Peter

    #1008067

    I’ve noticed now that the NONCE error occurs when not logged in to the site, but not when I am logged in as admin. Can you investigate from that approach?

    #1008577

    Hi,

    Can you try login to the web site, after u open icognito mode and tell us what will be the results?

    Best regards,
    Basilis

    #1011396

    Same error in incognito mode. Thank you for all of your ideas and help with this. I had the php upgraded to 7, but that didn’t solve the issue of getting a NONCE on file upload when not logged in to WP. What seemed to work so far is having the host disable caching for the affected pages.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.