Error while adding new palce

This topic contains 5 replies, has 3 voices, and was last updated by  Paolo 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #18476

    Dmitri
    Free User
    Post count: 42

    Hello,

    I am having error while adding new place. After I click “Review My listing” I got following error:

    Warning: trim() expects parameter 1 to be string, array given in /home/atlant62/public_html/informeron.lv/wp-content/plugins/geodirectory/geodirectory_template_actions.php on line 457

    If I do additing from admin panel I do not have any errors.

    http://www.informeron.lv

    GeoDirectory 1.2.4
    GeoDirectory Custom Post Types 1.0.7
    WP 4.0

    Thank’s

    #18510

    Paolo
    Site Admin
    Post count: 31206

    Hi Dmitri,

    that is a php warning, it should only be logged in your error log, it doesn’t prevent the application from working.

    If you add this to your child theme functions.php it will disappear:

    error_reporting(E_ERROR);

    We will include the fix to remove the warning complete in a future version.

    Thx

    #20898

    Dmitri
    Free User
    Post count: 42

    Hi,

    I have updated to the Version 1.2.7 but I still have the PHP error

    Warning: trim() expects parameter 1 to be string, array given in /home/atlant62/public_html/informeron.lv/wp-content/plugins/geodirectory/geodirectory_template_actions.php on line 453

    Thanks,

    #20918

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    did u add the code as polo suggested?

    Stiofan

    #20950

    Dmitri
    Free User
    Post count: 42

    No, he said “We will include the fix to remove the warning complete in a future version” – but it still there.

    #20952

    Paolo
    Site Admin
    Post count: 31206

    hi,

    because it is not an error but a warning and it doesn’t prevent the application from working, we clean them in batches once in a while.

    That’s why I said in a future version and not in the next version.

    Adding the error_reporting(E_ERROR); in your functions.php will prevent any of these warnings from GD or any other plugin to ever appear on your front end (which is strongly recommended anyway).

    Thank you

Viewing 6 posts - 1 through 6 (of 6 total)

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

Open Support Ticket