Wednesday, December 12, 2018

Joomla 2.5 Upgrade To 3.X – Use XXAMP Over WAMP

I started a straight forward upgrade of a Joomla 2.5 site to 3.x.

You start with with downloading Joomla 3.5.1 first. Click here to download that package.

I used Akeeba Kickstart to restore a copy of the site locally in a WAMP environment. Restored the site and it need to be upgraded from 2.5.19 to 2.5.28.

First I needed to turn off Akeeba’s “backup system update” plug-in. Go to Plugins >> Sort by “ID” and it will probably one of the last ones. Of course you can always search.

After that the install went fine.

Next we need to set the Joomla Core Updater to be more risky and allow for “Short Term Support” by clicking on the “Options” button.

Select “Short Term Support”.

Click “Save and Close”. Then go back to Joomla Update in the Control Panel.

 

Extensions

  • Akeeba
  • Sourcer
  • JCE
  • JEvents

I got this error:

1093 – An error has occurred.

You can’t specify target table ‘#__template_styles’ for update in FROM clause SQL=UPDATE `#__template_styles` SET home = (CASE WHEN (SELECT count FROM (SELECT count(`id`) AS count FROM `#__template_styles` WHERE home = ‘1’ AND client_id = 1) as c) = 0 THEN ‘1’ ELSE ‘0’ END) WHERE template = ‘isis’ AND home != ‘1’;

That lead me to this article in the Joomla Forums.

https://forum.joomla.org/viewtopic.php?t=910368

So I uninstalled all plugins hoping the JEvents tables would match up if the upgrade to 3.4 goes well and I reinstall JEvents. I removed Akeeba Plugins, but some didn’t want to go away. I removed the JEvents component and the JCE; although, the JCE didn’t want to uninstall either. I then proceeded with a 3.5.1 migration through the Joomla update manager. I got the same error.

Out of fustration I tried the process in XXAMP and the upgrade happened just like it should .

I hope this helps someone else out there….

 

 

 

 

Joomla 3.8 – Error You are not authorised to view this resource.

I got this error because the menu item was set to guest and after a user logged in the error would show.

The reason the menu item was set to guest is because I was using it for a login button. The other menu item was “logout”. When the user logged in it showed and the “login” was unpublished .

I set the user to “Publisher” and “Public” and I redirected the login on the menu item to a “How to update your site” page.

I hope this helps someone else out there…

 

ChronoForms – 1146 Table ‘XXXXXXXXX.#__chronoengine_forms6_blocks’ doesn’t exist

I moved a Joomla 3.8 site with Chronoforms 6 and I got this error:

 1146 Table 'XXXXXXXXX.#__chronoengine_forms6_blocks' doesn't exist

I quickly found this post.

https://www.chronoengine.com/forums/posts/t104239/1146-table-xxxxxxxxx-chronoengine-forms6-blocks-doesnt-exist

I backed up the form. Uninstalled the Chronoforms6 component and plugin. Downloaded the latest versions and restored the form. After that everything worked fine.

I hope this helps someone else out there…

 

DIVI Customize Tag Landing Page

Divi’s portfolio modules and projects component make adding the project / portfolio a breeze. I found a short code from Surbma that allowed me to quickly add the project tags to the page. The issue I had is when the user clicked on the tag the projects were displaying as single-column blog style and I wanted the columned style the module displayed.

The page got me in the right direction.

How to Give Your Divi Archive Pages a Masonry Layout

This was so close to what I wanted.

The boxes were not totally lined up so I ended up implementing “Flex” in the CSS to make the boxes fit a little better. I used the following article to guide me.

Don’t Overthink It (Flexbox) Grids

The next issue was being able to build this page like the other pages I had built in the Divi builder. I needed to add back the Yoast Breadcrumbs and this article helped.

How To Add Breadcrumbs To Your WordPress Website

I was hoping to build “child-theme” sub-page and I had trouble coming up with the right Taxonomy.  What I needed was “taxonomy-project-tag.php” or  “taxonomy-project-tag-tag label.php”

” .The following page helped me determine the right taxonomy for page of linked projects by tags.

Taxonomy Templates

 

I hope this helps someone else out there…

 

 

 

DIVI drop down vertical submenu

Working on a new WordPress site I really wanted to go deep with DIVI. I got stuck on an issue with the dropdown submenu items. They were horizontal instead of a standard one below the other.

The issue was quickly solved when I created a new menu and made that one the primary.

I hope this helps someone else out there…

 

K2 – Limit Intro Text

I was surprised I wasn’t able to do this easier, but it looks like others have struggled with this as well. I did get it fixed, and was able to limit the word count. I didn’t make a override yet but I will.

In the latest_item.php file I replaced:

<?php echo $this->item->introtext; ?>

with

<?php echo K2HelperUtilities::wordLimit($this->item->introtext, 50); ?>

Here is the thread that helped me solve it

https://www.joomlaworks.net/forum/k2-en/29406-solved-can-we-have-introtext-word-limit

I hope this helps someone else out there…