Jonnie Grieve Digital Media: Blog

Home
by on 22nd March, 2021 - 4:59pm (0)

Blog: R6D88: #100DaysOfCode (More Posts)

Alright… I mentioned before the weekend that I’d looked into reviewing my “Learning Notes” project. Now, it’s been neglected a little bit so when I did have a chance to look at it I noticed some bugs.. with where it lives now and with where it is on localhost.

Debugging Learning Notes Website

What followed was a little bit of back and forth between different installations and locations to get to the bottom of the following error.

Warning: “continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”? in C:\xampp\htdocs\wordpress\learning_notes\wp-includes\pomo\plural-forms.php on line 210

It was an error that messed up the admin area as well as the front-end. I thought I might have needed to just update the WordPress dashboard to the latest version… and thought about trying to debug it from there and it turns out, that’s all that needed; to update the installation to WordPress 5.7.

The admin area looked as good as new.  Easy so far.

Now to start thinking about why I went back to look at this website in the first place. What was stopping the dynamic content from showing up in the browser?

I exported an SQL data backup of my work on the server into the localhost installation to check it out. The import worked right away, which was a very nice surprise as I often find annoying error messages affecting some if not all of the backup which sets back the process quite often. It turned out that the backup was error-free because I imported an entirely new database into phpMyAdmin… so I then had to edit the wp-config.php file to compensate for that.

Finally, I did find the error causing the trouble. The message, the same message displayed was displayed multiple times across the screen and I think this does explain why I wasn’t seeing the Admin bar on the front end.  It was fixed instantly by deactivating the Crayon Syntax Highlighter plugin. That was the entire issue with this website; a plugin that was untested and incompatible with the latest version of WordPress.  All fixed. The bad news being that I now have no Code highlighting/formatting solution for posting code online.

For that reason, I have added a maintenance mode plugin to the website so I can continue to look into a solution for that.  So I have 2 websites I need to look at a code syntax highlighting solution for.

Photography Website Update

I put my latest Photography Website online this week as I normally do on a Monday.  I have added Groupings for Weather and “Nature & Outdoors.

Included in this update are

  • favourites (35)
  • animals (22)
  • best_of_rest (17)
  • boo (25)
  • wildlife_on_doorstep (25)
  • Birds (48) – showing 49
  • Birds in Flight (22) –

There may be 1 or two bugs in this latest update as it is right now. This is something I will look into and fix any of these as soon as I can.  This website is a continued content-building process.  🙂

 

 

This post has been assigned to the following categories

    Leave a Reply

    Your email address will not be published. Required fields are marked *