- This topic has 2 replies, 3 voices, and was last updated 2 years, 7 months ago by
meganjoe45.
-
AuthorPosts
-
September 19, 2019 at 10:16 am #59533
panthar
MemberHello,
This plugin/form was working perfectly, but after migration, it seems to have the following errors (see bottom of post), when I submit the form. This error is occurring on the search-results page.
The directory it’s trying to include files from has a prefix of /nas/content/live/ , which is not a valid directory on our new host. I have looked through the database, tried disabling/enabling the plugin, tried using different templates, not working.
Thinking I could figure out the cause, I actually debugged this as far as I could, and found that inside class-gmw-helper.php, around line 292 $output[‘content_path’] = $plugin_dir . “/templates/{$folder}{$template_name}/{$file_name}”; is what contains the invalid include-path that’s producing the error.
Is there some way I fix these invalid directories for the template(s)? Appears like your plugin is the only plugin with a problem since our migration, and I would have to guess this is somewhere in the database I could change this, but where?
Warning: include(/nas/content/live/<our site>/wp-content/plugins/gmw-wordpress-users-locator/templates/search-forms/default/content.php): failed to open stream: No such file or directory in /www/wp-content/plugins/geo-my-wp/includes/class-gmw-form.php on line 475
Warning: include(): Failed opening ‘/nas/content/live/<our site>/wp-content/plugins/gmw-wordpress-users-locator/templates/search-forms/default/content.php’ for inclusion (include_path=’.:/usr/share/php’) in /www/wp-content/plugins/geo-my-wp/includes/class-gmw-form.php on line 475
Warning: include(): Failed opening ‘/nas/content/live/<our site>/wp-content/plugins/gmw-wordpress-users-locator/templates/search-results/ninja/content.php’ for inclusion (include_path=’.:/usr/share/php’) in /www/wp-content/plugins/geo-my-wp/includes/class-gmw-form.php on line 1071
Thanks in advance!
September 28, 2019 at 9:08 am #59556Eyal Fitoussi
MemberHi,
Sorry for not replying sooner.
Have you managed to correct the issue? After migration to a new server, you need to navigate to the dashboard -> GEO my WP -> Extension and deactivate/reactivate the Posts Locator core extension ( or any of the core extensions ). Doing so should correct the issue.
I hope this helps.
October 3, 2019 at 12:53 am #59570meganjoe45
MemberStill facing this issue?
-
AuthorPosts
You must be logged in to reply to this topic.