Virtual "page" -> fail to load page
-
…
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Virtual "page" -> fail to load page’ is closed to new replies.