Shape 5

General Category => Vertex 4 Framework => : pmleconte September 16, 2017, 10:24:43 AM



: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: pmleconte September 16, 2017, 10:24:43 AM
Hi,

I just tried Joomla 3.8 RC 1 and RC2 dev to check that everything will be ok on monday (Joomla 3.8 official release date) and, of course, it is not....

Using Soul Search Template, it calls Vertex Flex Menu and no menu is displayed anymore.

This is due to Joomla classes clean up in library/cms.

In templates\soul_search\vertex\s5flex_menu\helpers.php, there's a call to /libraries/cms/menu/site.php (that's line 69). So, to make menu work, you have to change line 69 so it'll contain :

$path = $info->path . ($flexmv <= 2.5 ? '/includes/menu.php' : '/libraries/cms/html/menu.php');

Just hope it will help because monday will be a busy day.....

Regards,

Pascal


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: pmleconte September 18, 2017, 02:15:19 AM
Just updated the fix, so it'll work with all Joomla versions:

Line 69 becomes :

$path = $info->path . ($flexmv <= 2.5 ? '/includes/menu.php' : '/libraries/cms/menu/site.php');
$version=new JVersion;
if($version->RELEASE>='3.8'){
   $path =$info->path . ($flexmv <= 2.5 ? '/includes/menu.php' : '/libraries/cms/html/menu.php');
}

Pascal


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 18, 2017, 08:24:36 AM
Hello,

Thank you for the update we do not release updates for beta versions of Joomla. Most issues are already fixed by the time stable versions of Joomla are released. We will keep this in mind in case it is not corrected by then.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: pmleconte September 19, 2017, 05:51:48 AM
There's a cleaner way of doing it : comment out the path part and add a direct call to the class:

/* ==> incomptible with next versions of Joomla!
    $path = $info->path . ($flexmv <= 2.5 ? '/includes/menu.php' : '/libraries/cms/menu/site.php');
   $version=new JVersion;
   if($version->RELEASE>='3.8'){
      $path =$info->path . ($flexmv <= 2.5 ? '/includes/menu.php' : '/libraries/cms/html/menu.php');
   }
    if (file_exists($path)) {

      require_once $path;

      // Create a JPathway object

      $classname = 'JMenu' . ucfirst($client);

      $options = array();

      $instance = new $classname($options);

    } else {

      //$error = JError::raiseError(500, 'Unable to load menu: '.$client);

      //$error = null; //Jinx : need to fix this

      return null;

    }
*/
      $classname = 'JMenu'. ucfirst($client);

      $options = array();

      $instance = new $classname($options);


Pascal


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: vangelis September 19, 2017, 09:13:58 AM
It is work!!! Thank You!


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: PC_Medic September 19, 2017, 09:45:28 AM
Thank you Pascal... This did the trick !!! Menus are now working again.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: pmleconte September 19, 2017, 10:03:45 AM
This is a non official fix ...

"Most issues are already fixed by the time stable versions of Joomla are released. We will keep this in mind in case it is not corrected by then" : just hope 4.1.1 version will appear soon.

pascal


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: eenhoorn September 19, 2017, 10:28:31 AM
How is it possible?!

Had at least expected that shape5 was testing there template, so they had a fix update around the release date. A beta phase is intended for developers to test their products for errors ..... (Where does the official update remain?)


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: addrenalin September 19, 2017, 10:33:03 AM
Nothing seems to work - any other ideas?



P.S. This problem is ridiculous


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 19, 2017, 10:37:18 AM
Hello pmleconte,

I agree, this is a better approach. I am implementing this into our files now and will release a new Vertex version soon. Thanks for your help!


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 19, 2017, 10:40:05 AM
Hello,

"How is it possible?!

Had at least expected that shape5 was testing there template, so they had a fix update around the release date. A beta phase is intended for developers to test their products for errors ..... (Where does the official update remain?)"

---Joomla release candidates have historically have many issues that were later corrected during final release. Betas are not meant to make official changes in code; they are strictly for testing.

"Nothing seems to work - any other ideas? "

---The latest patch files already contain the updated file. We will be releasing a newer version of Vertex today or tomorrow, but in the meantime the latest files are already in the current patch zip file.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: addrenalin September 19, 2017, 10:46:02 AM
where can I get this patch file - and do I just overwrite the existing template or upload a zip?


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 19, 2017, 10:50:49 AM
Hello,

There are instructions for the patch found here:

https://www.shape5.com/documentation/Vertex-Framework/Joomla-Specific/How-To-Patch-Vertex-In-Joomla-and-Changelog


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: addrenalin September 19, 2017, 10:58:21 AM
I think this is the actual link?
https://www.shape5.com/component/option,com_docman/Itemid,96/task,cat_view/gid,307/

(this has the download option)


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: andrzejw September 19, 2017, 11:34:40 AM
Thanks


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 19, 2017, 01:12:09 PM
Hello,

The official 4.2 patch has been released. Again, the tutorial and download link can be found at the following url:

https://www.shape5.com/documentation/Vertex-Framework/Joomla-Specific/How-To-Patch-Vertex-In-Joomla-and-Changelog


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: captgary September 20, 2017, 11:47:56 AM
I just installed the patch per the instruction. Each file was uploaded in the order presented. It still indicates we have teh older version. Menus still gone. Suggestions?

gary


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: jonahh September 20, 2017, 11:50:34 AM
Your permissions may be preventing the files to override via FTP. Check your permissions to be sure that when you are uploading and overwriting the files that they are actually getting overwritten.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: captgary September 20, 2017, 12:02:38 PM
Your permissions may be preventing the files to override via FTP. Check your permissions to be sure that when you are uploading and overwriting the files that they are actually getting overwritten.

Just checked and read write and execute are all checked.  This back end stuff is not my strong suite.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: jonahh September 21, 2017, 10:48:54 AM
If you can PM me Joomla and FTP login details I can get it working for you.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: calebt September 21, 2017, 12:45:06 PM
Hello thank you patching this, but when i follow the instructions I get a blank page that only says "Template XML file not found"

Thoughts?


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 22, 2017, 07:27:41 AM
Hello,

A template xml files points to an xml file missing. Check the template's xml folders, in there you should see Vertex.xml and Specific.xml, if both of those are not there one has been removed. You can grave Vertex.xml from the patch and Specific.xml from the template's original zip file.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: calebt September 22, 2017, 08:49:06 AM
Hi Mike, in my xml folder on website the Specific.xml wasn't  present so i copied it over from the original website files. But now im seeing a very different issue.  Take a look at the screen shot.  I have rolled it back to no menu for the time being.

Thanks,
Caleb

Update:
I have another client with the same issue.  The first client is using Modern Flavor and the second one is using Business Line.  Same xml error, then when i replace the Specific.xml file i get a strange unformatted page - I've rolled it back to no menu version as well.  See attached screen shot.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: mikek September 22, 2017, 11:54:49 AM
Hello,

You are not applying something correct with the patch. Uploading the patch files does not touch the xml files. If you can restore the sites with a backup, and private message me ftp access I can patch them for you.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: calebt September 22, 2017, 12:56:45 PM
Ok its fixed!  Turns out that my FTP program "Flow" was overwriting at the "Folder" level and not the file level.  For instance the Specific.xml was not in the Vertex update but my ftp program overwrote the whole folder...and Im sure that was happening in all the other folders.  My fix was to login to my hosting account and upload the update zip file, then extract it in the proper location.  Worked like a charm!  Sorry about that Mike. Thank you though!!


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: Gutshot September 23, 2017, 03:05:44 AM
Can't this be made a fix/update you can install through the backend that overwrite the files?

For end users of their website this is very hard because most don't even know what FTP means or how to use it.



: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: labadmends September 26, 2017, 03:53:23 PM
Thank you Pascal!


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: Deee January 10, 2018, 12:25:31 PM
Hello,

There are instructions for the patch found here:

https://www.shape5.com/documentation/Vertex-Framework/Joomla-Specific/How-To-Patch-Vertex-In-Joomla-and-Changelog

Hi, I installed the vertex updater component (to avoid having to do this via FTP) however it displays only a blank when I choose it from the backend. I am running Joomla 3.8.3.

Thank you for any assistance


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: jonahh January 11, 2018, 10:45:28 AM
Hello,

Please try reinstalling it. We actually just made an update to it over the past 24 hours and this may fix your issue.


: Re: Joomla 3.8 / Vertex 4.1 / S5 Flex Menu
: glitter January 28, 2018, 12:06:39 AM
Thank you Pascal for posting the actual code fix and filename - allowed me to fix my older Vertex template and saved me tons of time!