Front end empty (i.e. nothing displays); Back end looks fine; What are possible causes?
Have you tried the default theme? Does that work? Did you change the wp-content folder to something else?
Have you tried the default theme? Does that work? Did you change the wp-content folder to something else?
To make sure that the index.php will be loaded first add the following line to your .htaccess: DirectoryIndex index.php index.html This tells Apache to ignore an index.html if an index.php exists.
I’m not seeing the original snippet from before so I’m not sure of the context anymore. The undefined index notice you are getting is telling you that $_POST[‘remove_field’] does not exist. If no checkbox in your array was set, the $_POST array will not have an index for ‘remove_field’, and you’ll see the error. To … Read more
You should always check if a POST variable (or an item/key in an array like the superglobal $_POST variable) exists before attempting to use it. And you could use isset() like so: if ( // Check if the variable is set. isset( $_POST[‘mytheme_meta_box_nonce’] ) && // .. before accessing the value. ! wp_verify_nonce( $_POST[‘mytheme_meta_box_nonce’], basename( … Read more
I believe that this line ini_set(‘error_reporting’, E_ALL ); will override other error settings. Will display all errors, even ‘benign’ ones, to the screen and error log file.
Your problem is here: $featuredPosts = new WP_Query(); $featuredPosts->query(‘showposts=”.get_option(“mp_slides_no’).’&category_name=”.get_option(“mp_featured_cat’).”); for($i=1; $i<=$featuredPosts; $i++) { You’re creating a new instance of WP_Query to run a custom query and storing it in the $featuredPosts variable. But then you’re trying to use $featuredPosts as the upper limit of a for loop. This is what PHP is complaining about. Your … Read more
Works for me global $wp_query; if ( function_exists( ‘pagination’ ) ) { pagination( $wp_query->max_num_pages ); }else { // Previous/next page navigation. the_posts_pagination( array( ‘prev_text’ => __( ‘Previous’ ), ‘next_text’ => __( ‘Next’ ), ‘screen_reader_text’ => __( ‘ ‘ ) //’before_page_number’ => ‘<span class=”meta-nav screen-reader-text”>’ . __( ‘Page’ ) . ‘ </span>’, )); };
In your /home/dinorg/public_html/wp-content/themes/din/admin/qa_db.php something wrong. It is unusual that first line of a script will print something unless you opened php tag (or php shorttag) and put some codes in same line. So i guess that file may have something like BOM. Please open the file and see if you notice any weird characters. if … Read more
Debugging unserialize errors [closed]
It looks like a javascript error is preventing scripts from running. There error is from the script cloudflare.min.js, so perhaps it has to do with how you have Cloud Flare setup? Did you just recently start using it? In particular it seems to want to load a non-existent image from ‘http://www.fearlessblue.com/trueblue/wp-content/themes/Prestige/img/backgrounds/LeatherBusiness_DarkLeather&Wood_addPages.jpg’.