Missing argument and header information in theme compatibility after upgrade

This topic contains 10 replies, has 7 voices, and was last updated by  Guust 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #36195

    P O
    Expired Member
    Post count: 501

    I just upgrade to latest version and after going to theme compatibility and hit save:

    Warning: Missing argument 2 for geodir_before_update_options() in /Applications/MAMP/htdocs/site/wp-content/plugins/geodirectory/geodirectory-admin/admin_functions.php on line 2990
    Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/site/wp-content/plugins/geodirectory/geodirectory-admin/admin_functions.php:2990) in /Applications/MAMP/htdocs/site/wp-includes/pluggable.php on line 1178

    Hope it helps.

    #36199

    Guust
    Moderator
    Post count: 29970

    I notified the developers.

    #36215

    pix3x
    Expired Member
    Post count: 155

    Hi, there! Same issue here:

    WordPress 4.1.1
    AVADA and AVADA Child 3.7.4
    GeoDirectory Core plugin 1.4.2
    Last step of the installation guide http://docs.wpgeodirectory.com/basic-installation/
    [x] Set geodirectory home page as your home at …wp-admin/admin.php?page=geodirectory&tab=design_settings [Save]
    Produced the white screen and the following error messages:

    
    
    - Warning: Missing argument 2 for geodir_before_update_options() in .../wp-content/plugins/geodirectory/geodirectory-admin/admin_functions.php on line 2990
    - Warning: Cannot modify header information - headers already sent by (output started at .../wp-content/plugins/geodirectory/geodirectory-admin/admin_functions.php:2990) in .../wp-includes/pluggable.php on line 1178

    Then the error messages disappered.

    #36231

    P O
    Expired Member
    Post count: 501

    Just to update this, it happens in a lot of places of the admin. If you go to design, change something and hit save, the exact same error shows up.

    So its something general when saving admin options of WPGD.

    Cheers.

    #36237

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    That is a PHP warning and not an error and should not really be shown unless on a dev server (new PHP has it enabled by default)

    Add this to your child theme function.php to stop showing errors for now and i will have a look on Monday.

    
    
    ini_set("display_errors", "0");
    error_reporting(E_ERROR);

    The 2nd argument is not being used for anything in that function so it’s only the fact the warnings are showing that are causing problems.

    Thanks,

    Stiofan

    #36238

    P O
    Expired Member
    Post count: 501

    Its not only a Warning at the top, its a blank page and just the Warning showing.

    In some options everything saves fine, in some others, blank page with the Warning. (So you don’t even know if things were saved).

    Disabling Warnings in my local environment worked.

    Thanks.

    #36249

    Rajeshchandra Devjee
    Free User
    Post count: 3

    Hi Same here, after the upgrade this happens Grrrr, and I was going to purchase the subscription!

    #36343

    Paolo
    Site Admin
    Post count: 31206

    Hi Rajeshchandra Devjee, just apply the fix suggested by Stiofan and you will be good to go. Your server isn’t supposed to show php warning, it should only logged them in the error log.

    Thanks

    #36346

    yvettie86
    Buyer
    Post count: 94

    Hi, I’m getting the same error. Can you tell me exactly where I should insert this code? Just anywhere in the file? Thanks, Yvette

    #36348

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    anywhere in functions.php file of your active theme after the initial

    #36386

    Guust
    Moderator
    Post count: 29970
Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket