Support » Plugin: Custom Content Type Manager » Export Definitions broken

  • After setting up my site configuration, I wanted to export the settings using the Export Definitions tool.

    When using this tool I get the error:
    Warning: require_once(../../../../wp-load.php): failed to open stream: No such file or directory in /var/www/vhosts/wordpress.dev/public_html/wp-content/plugins/custom-content-type-manager/ajax-controllers/download_def.php on line 7

    My setup is a little different than the norm…

    I have WordPress installed in a sub-directory. I have a directory names wordpress that has all my flavors of WordPress outside the webroot. I symlink the wordpress directory in the site to the version I am using (this is basically the same as using WordPress in a sub-directory. Actually, it’s exactly the same with my setup). This works very well and allows me to manage each site very easily (I only need to update the symlink when updating WordPress and it’s very easy to rollback if needed)

    I also have a special wp-config to handle default settings. My wp-content directory is outside the wordpress directory too. This is to keep the core separate from my site specific needs.

    Although my setup is unique, that is not the cause of this issue. The plugin should be able to work as expected if you don’t try to assume the location of the files (the code shows you assume the path, which is just wrong…) I would suggest hooking into WordPress admin ajax hooks to prevent this issue.

    I have a lot of plugins installed with this method and this is the only plugin that breaks. It seems like a simple fix so hopefully this will help you.

    Thanks

    https://wordpress.org/plugins/custom-content-type-manager/

  • The topic ‘Export Definitions broken’ is closed to new replies.