English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Error when updating to Jooma 3.7.0
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Error when updating to Jooma 3.7.0
#12849
Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 0
When I try to update my Joomla Multisite from 3.6.5 to 3.7.0 I get this error: Fatal error: Class 'MultisitesContentRouterRulesLegacy' not found in /home/mettecos/public_html/components/com_multisitescontent/multisites.router.php on line 56

I've bought and installed the latest JMS2WIN version: 1.3.65
I'm currently using PHP-version: 5.6, I've tried to upgrade to 7.0 and 7.1 without any success

Any ideas on what to do?

//Christer
ChristerE
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12850
Re: Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 54
The error is related to the Article Sharing.
Verify that you are using the latest "Article Sharing for JMS" version 1.3.13.

When you upgrade of Joomla, it is always recommended that you use the latest version of all the extensions.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12869
Re: Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 0
Thanks, that made all the diffenrence BUT... now I get "Fatal error: Call to a member function get() on boolean in /my_path/components/com_multisitescontent/multisites.router.php on line 70"

I get this on all pages that share menu item with master site, do you have any updates for that plugin "laying around"?

I checked again and could it be the "Article sharing" that is the problem (I use version 1.3.13) on both master and slave sites.
ChristerE
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2017/05/23 20:03 By ChristerE.
The administrator has disabled public write access.
 
#12872
Re: Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 54
Can you also precise the Joomla version that you are using.
Is it still J3.7.0 or 3.7.1 or 3.7.2 ?

I had a look in the J3.7.0 and the line 70 is

$category = JCategories::getInstance($this->getName())->get($id);

That would mean that JCategories::getInstance() return false and therefore, effectivelly the get() function does not exists on a boolean.

The only case where JCategories::getInstance() is when the name of the component "$this->getName()" provided does not provide the code to manage the category.
This can be due when the
JPATH_SITE . '/components/' . $component . '/helpers/category.php';

does NOT exists or when it does not contain the appropriate class name.

To make a diagnosis of the reason, try modifying this line to add test and collect debug info.
Try replacing the line 70 by the following.

$obj = JCategories::getInstance($this->getName());
if ( empty( $obj)) {
error_log( "Invalid category for component:".$this->getName());
return array();
}
$category = $obj->get($id);


Remark:
this peace of code should write an entry into the error_log file and show not return any category.
The code will be removed automatically with the "Purge" menu or any update. So consider it is as temporary debug code.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12874
Re: Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 0
Thanks, I'll try it out, I'm using 3.7.0
ChristerE
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12875
Re: Error when updating to Jooma 3.7.0 7 Years, 6 Months ago Karma: 0
The "fix" you provided solved the problem!!! THANKS
ChristerE
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla