GeoDirectory SupportError while adding new palce – GeoDirectory Support https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/feed Fri, 14 Mar 2025 17:05:41 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-18476 <![CDATA[Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-18476 Wed, 15 Oct 2014 17:13:21 +0000 Dmitri 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

]]>
https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-18510 <![CDATA[Reply To: Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-18510 Wed, 15 Oct 2014 20:07:51 +0000 Paolo 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

]]>
https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20898 <![CDATA[Reply To: Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20898 Fri, 07 Nov 2014 07:21:30 +0000 Dmitri 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,

]]>
https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20918 <![CDATA[Reply To: Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20918 Fri, 07 Nov 2014 10:57:23 +0000 Stiofan O'Connor did u add the code as polo suggested?

Stiofan

]]>
https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20950 <![CDATA[Reply To: Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20950 Fri, 07 Nov 2014 16:48:53 +0000 Dmitri No, he said “We will include the fix to remove the warning complete in a future version” – but it still there.

]]>
https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20952 <![CDATA[Reply To: Error while adding new palce]]> https://wpgeodirectory.com/support/topic/error-while-adding-new-palce/#post-20952 Fri, 07 Nov 2014 17:27:35 +0000 Paolo 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

]]>