After editing template, page goes blank, help! (4 posts)

  1. Keyboard_Headaches
    Posted 1 year ago #

    I am building a custom theme for a real estate site. I have most fo it complete and I am working on some touch ups at the moment. Everything was working fine last night and all was good. However today, when I make any kind of edit to the hompage-template.php and refresh the page, it goes blank. No matter what I do, it always goes blank.
    Here's whats funny, as soon as I undo my change and save, I refresh the page and its all back to normal.
    It does this mo matter what I do, even something so simple as adding a p tag with a number (1) inside it. It goes blank, lol. Has anyone had this issue before and if so, what was the cure?
    I am using notepad++ and filezilla for the work. I have even tried with Notepad++ built in FTP client and got the same result. Any ideas?

  2. have you enabled 'debug' to see if you get some error messages?


    does this also happen if you edit the template from within the dashboard - appearance - editor?

  3. Keyboard_Headaches
    Posted 1 year ago #

    Yes I did and here is what I got back

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home2/entechpc/public_html/wp-includes/functions.php on line 2959

    Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home2/entechpc/public_html/wp-content/themes/LeacroftRealtyGroup/functions.php on line 11

    I dont really undersand them ans here is
    Something funny though, I have not used any enqueue at all. I never use any enqueue scripting in any of my themes. Just dont undertsnad them or how to use them.

    and here is my functions.php

    // Enable post thumbnails
    set_post_thumbnail_size(125, 125, true);
    //Enable post and comments RSS feed links to head
    add_theme_support( 'automatic-feed-links' );
    //Code for custom background support
    add_theme_support( 'custom-background' ); 
    require_once ('includes/menuinit.php');
    require_once ( 'includes/cattemp.php' );
    require_once ( 'includes/breadcrumbs.php' );
    require_once ( 'includes/sidebar.php' );
    require_once ( 'includes/walkerclass.php' );
    require_once ( 'includes/portfolio.php' );
    require_once ( 'includes/postnav.php' );
    require_once ( 'includes/readmore.php' );
    require_once ( 'includes/googlemaps.php' );

    Now I did hand write everything in all of the files I have in this theme maybe I have a mistake in one of my include files?

  4. Keyboard_Headaches
    Posted 1 year ago #

    By the way, the site is on my demo server, http://www.entechpc.com if you wish to take a look, just dont laugh as I am a noob theme developer

Topic Closed

This topic has been closed to new replies.

About this Topic