Wordpress problem with template to access the page

Asked

Viewed 44 times

1

I drew a template to make a website for myself and it’s giving me a mistake that I don’t understand Wanted help

This is like an online store where you have a series of products for sale

and when I put the files to localhost I only see the message that is present below and I don’t know how to solve in php I have this code

<?php
// File Security Check
if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
    die ( 'You do not have  permissions to access this page!' );
}
?><?php
/**
 * Index Template
 *
 * Here we setup all logic and XHTML that is required for the index template, used as both the homepage
 * and as a fallback template, if a more appropriate template file doesn't exist for a specific context.
 *
 * @package WooFramework
 * @subpackage Template
 */
    get_header();
    global $woo_options;

?>

and in the browser appears this ~

You do not have sufficient Permissions to access this page!~

The contents are not appearing What’s wrong with that line of code or need some database Thank you

  • can help me?

  • Your question is a little hard to understand, has how you edit and improve a little?

1 answer

0

checks the value of these terms:

if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
    die ( 'You do not have  permissions to access this page!' );
}

if it does not interfere with the operation of the tool comments this if and monitors the operation.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.