• Resolved tomas.k.7

    (@tomask7)



    add_rewrite_endpoint( ‘some-virtual-slug’, EP_ROOT | EP_PERMALINK | EP_PAGES );

    add_action( ‘init’…);


    if(isset($wp_query->query_vars[‘some-virtual-slug’])) include dirname( __FILE__ ) . ‘/some-virtual-slug.php’;
    add_action( ‘template_redirect’…);

    opening example.org/some-virtual-slug/ writes:

    Fatal error: Cannot redeclare wp_crop_image() (previously declared in /home/html/example.org/public_html/wp-admin/includes/image.php:25) in /home/html/example.org/public_html/wp-admin/includes/image.php on line 61

    when I disable related posts, problem disappears…

    https://www.ads-software.com/plugins/wordpress-23-related-posts-plugin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tomas.k.7

    (@tomask7)

    resolved -> it was combination of two plugins… the sexond one had:

    include( ABSPATH . ‘wp-admin/includes/image.php’ );

    instead of

    include_once( ABSPATH . ‘wp-admin/includes/image.php’ );

    Sooooo you worked this out?
    Which plugin was the other one?

    Best,
    Rok

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Virtual "page" -> fail to load page’ is closed to new replies.