• Resolved kevin

    (@k-win)


    Did my development locally and after uploading files and database online, i get those messages when trying to create or edit a page’s content:

    Warning: require_once(C:\wamp\www\mural_comunicacao\wp-content\plugins\custom-content-type-manager/fields/image.php) [function.require-once]: failed to open stream: No such file or directory in /usr/www/users/.../wp-content/plugins/custom-content-type-manager/includes/CCTM.php on line 1975
    
    Fatal error: require_once() [function.require]: Failed opening required 'C:\wamp\www\mural_comunicacao\wp-content\plugins\custom-content-type-manager/fields/image.php' (include_path='.:/usr/local/lib/php') in /usr/www/users/.../wp-content/plugins/custom-content-type-manager/includes/CCTM.php on line 1975

    Editing the posts and the custom post type are going just fine.
    i’ve already deactivated/activated, downloaded a fresh zip. No luck so far.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kevin

    (@k-win)

    Think i found where it came from in the database, wp_options, cctm_data is filled with absolute paths to my local dev C:\wamp\www\mural_comunicacao\wp-content\plugins\custom-content-type-manager/fields/

    Does this have to be hard coded?

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    When migrating your install, you need to export your content type definitions and then import them in the new location — ultimately this workaround is necessary due to limitations and short-sighted dev practices riddling the wordpress core.

    See https://code.google.com/p/wordpress-custom-content-type-manager/wiki/Export
    and https://code.google.com/p/wordpress-custom-content-type-manager/wiki/Import

    Thread Starter kevin

    (@k-win)

    Seemed to have worked, i exported the local settings, imported on the online site and cleared the cache with the ‘clear cache’ tool. Thanks for the links.

    Another approach is to replace it manually:

    $cctm = get_option('cctm_data');
    foreach( $cctm["cache"]["helper_classes"]["fields"] as $key=>$f ) {
    	$cctm["cache"]["helper_classes"]["fields"][$key] = str_replace("OLD BASE PATH","NEW BASE PATH",$f);
    }
    foreach( $cctm["cache"]["helper_classes"]["filters"] as $key=>$f ) {
    	$cctm["cache"]["helper_classes"]["filters"][$key] = str_replace("OLD BASE PATH","NEW BASE PATH",$f);
    }
    update_option( "cctm_data", $cctm );
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal error on opening pages content’ is closed to new replies.