GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Not resolved]After migrating site from WP Engine the ‘content_path’ is wrong for templates

Forums Support After migrating site from WP Engine the ‘content_path’ is wrong for templates

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59533
    panthar
    Member

    Hello,

    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!

    #59556

    Hi,

    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.

    #59570
    meganjoe45
    Member

    Still facing this issue?

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

You must be logged in to reply to this topic.