Viewing 15 replies - 16 through 30 (of 35 total)
  • Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Yes. I have the original theme files.

    Will take quite awhile to work with them, though, because they were for a flicker site and don’t at all resemble the site I built.

    But I have a new problem.

    I also tried to look at the site in another theme (that worked in May) but now can’t even access the theme editor. I get the following message:

    Parse error: parse error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/journal/public_html/wp-content/themes/Regulus/functions.php on line 186

    Guess I need to fix that first so that I can see the site again.

    How do I tell which line is line 186 in functions.php? Is there a particular editor I can open it in that will number the lines (as did the validation editor)?

    Thanks,
    kwc

    Every decent text editor listed in the Codex shows the line number (otherwise we’d go mad when working with code ??
    https://codex.www.ads-software.com/Glossary#T

    If you didn’t edit the functions.php file – it sounds like a corrupted file. Files get corrupted more often than you’d think: during download, unzip, upload etc.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    OK. I uploaded a backup of the Regulis functions.php and got out of Regulis and have it back to its original broken right now.

    So I have two paths to pursue here.

    – Your suggestion of uploading a backup of the original theme and making changes, one line at a time, checking validation between each. Since there are at least 100 changes and probably many, many more than that, that will be a lengthy task.

    – Correcting as many of the validation errors as I can on the Index page and seeing what I end up with.

    I can’t make time for either this afternoon. And may end up doing both. Am thinking that trying to correct the validation errors on the index page is probably the simplest first step. And maybe it will lead me to the corrupted file that is causing the current issues. And maybe, without too many hours, I can get the code to validate.

    That would really be nice. And if not, then it’s start building all over, I guess. And maybe I’ll pick a whole new theme at this point if I’m going to do that.

    I’ve been intending to make a bunch of changes anyway to simplify this thing. It’s no longer a simple clean layout like I intended. I’ve messed it up with way too many categories. And the colunns in the two-column sidebar are too narrow to allow for much meaningful content there.

    So, third option: Maybe use this an an opportunity to re-theme/re-design the whole works.

    A fourth just occurred to me: I could upload a backup from two or three weeks ago, while the site was still working, and then start tackling the validation errors in that version.

    Too many choices now.

    I’ll be back. Thanks for the help.

    I’ve messed it up with way too many categories.

    That’s a statement I agree 100% with ??

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Back to this. Looked into my backups. They are just sql backups. Dont include the theme files. So I have weekly backups of my posts, basically.

    So now going into my theme files to see what the most recent versions I have are.

    And going to tackle the validation of the exiting broken index page for an hour or so and see if I can make much progress.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Not.

    Verizon Wireless, my ISP, is experiencing intermittent outages, so this work is no go tonight. Back to it soon.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Finally! Back to this. Have been days without internet service. Turned out it was the Google Toolbar 2.0 update that was issued late last workweek and that automatically updated itself that was interfering with my wireless connection. Had to turn off several new functions in it, but now I’m back online just like before Google Toolbar updated.

    Now I’m totally flummoxed as to what to attempt next.

    When I begin the validation process for the main page at https://www.mindbodyspiritjournal.com, I run into multiple instances of codes supposedly not closing. But when I go to the line indicated, I see the code is closed. It’s exactly the same as with the div closing issue cited much earlier.

    Going to read back through this whole thread and see if I get any inspirations.

    Sure wish my weekly backups had backed up the theme also!

    kwc

    A lot of errors are coming from how the “more” tag is inserted in your posts:
    it starts with the anchor tag: <a href...> tag and it should end with </a>. But for some reason (hitting Enter?) there is a <p></p> pair in between the anchor tags, which is not valid in any circumstances; and the validator says <a> is not closed = meaning something wrong comes before the closing tag.

    Are you using the wysiwyg (aka RTE or TinyMCE) editor monster when writing posts? It is notorious about adding all kind of crappy code to the posts…

    Also, for tags that don’t have closing “pairs”, like hr or img – in xhtml the end should look like:
    <hr /> <== notice the space and the / [slash].
    Same for <br /> etc.

    Error 28/29. You can NOT have <p> tags around list!

    Some basics of the XHTML: https://www.w3schools.com/xhtml/default.asp

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Hi Moshu, thanks for checking in and giving me some direction. Not sure if I’m using the wysiwyg editor. Will check that now. Because I can’t find WHERE to edit the code to get rid of that bogus stuff when the ‘more’ is inserted.

    If above the Writing area you see a Word-like toolbar > you are using the wysiwyg.
    This is how to turn it off:
    https://www.vindictivebastard.net/images2/turnoff-rte.gif

    When turned off, in the Write text area you will see the actual code – and you can edit it.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Don’t think I’m using the wysiwyg editor. Under Options/Writing the only formatting option I have checked is “WordPress should correct invalidly nested XHTML automatically” … and I’m wondering if that might be adding some superfluous coding to the “more” function.

    I’ve looked at a few posts and I’m not hitting a return after inserting the “more” code. Am inserting it by selecting it from the menu above the post box.

    Going to work on some of your other suggestions. If you have any idea in what file I might look to find where the actual coding for the “more” can be edited, I’d appreciate hearing it.

    That does seem to be the most common problem.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Oops. We crossed in the mail. So then, YES, I’m using a WYSIWYG editor and will go to that link you offered and find out how to turn it off.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    No, I didn’t have that “use rich visual editor” or whatever box checked. And I don’t have a Word-like menu above the Post box. Thought I did when you first wrote that, but I just looked. What I have is a line of code buttons between the Title box and the Post box.

    However, I don’t see the raw code when I’m writing. Or when I call up old posts to edit them.

    Somehow I’ve got to get to where I can see that I guess, to delete the bad code in all those posts … unless I can find the actual function call (maybe wrong term?) that is putting them in and edit it.

    Am going on a deeper hunt to see if I can find where to turn on raw code in my edit posts box.

    Sorry, in that case I am getting confused…

    Wisiwyg OFF: https://www.transycan.net/abc/no_wysiwyg.gif

    Wysiwyg ON: https://www.transycan.net/abc/wysiwyg_on.gif

    With the wysiwyg OFF you should see the code.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    In Index.php, here is how it tells WordPress to handle the “more” link, and it doesn’t show that bogus code. So I’m not sure where it’s getting inserted… unless by the WYSIWYG editor. But I haven’t found how to turn that off yet.

    OK, from Index.php:

    <div class="entry">
    <?php the_content('<br /><br />[more...]'); ?>
    </div>

    Which makes me wonder where to look for the [more...] function that is being called here. Maybe when I get in there, I’ll find the extra code?

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Single Post not calling sidebar or footer suddenly — why?’ is closed to new replies.