JRule Fatal Error

More
11 years 9 months ago #47408 by pxion129
JRule Fatal Error was created by pxion129
I am using the latest version of Flexicontent. I recently received the following error message in the backend:

Fatal error: Class 'JRules' not found in /home/content/56/6850156/html/administrator/components/com_flexicontent/models/flexicontent.php on line 1257

Please respond back with a fix so I can update my website.

Thanks,

Pheng

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47409 by micker
Replied by micker on topic JRule Fatal Error
-- last version => is unclear,

which version is that ?
latest in download section is v2.1.3 r1857 and in SVN it is r1908



-- where did you have this error (backend frontend specific page ?

frontend item view?

backend FLEXIcontent "home" (dashboard) ?


regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47414 by ggppdk
Replied by ggppdk on topic JRule Fatal Error
Hello

also mention Joomla version (and FC version of course)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47418 by pxion129
Replied by pxion129 on topic JRule Fatal Error
I am using version: FLEXIcontent CCK v2.1.3 r1857 with Joomla 3.30, which are the latest versions.

The page the fatal error is occurring when I attempt to get to the FLEXIcontent dashboard in the backend. (Components >> FLEXIcontent) and when selecting any of the shortcuts from the Joomla Control Panel. Frontend view is just fine.

Thanks for the follow-up. I'm looking forward to a resolution.

micker wrote: -- last version => is unclear,

which version is that ?
latest in download section is v2.1.3 r1857 and in SVN it is r1908



-- where did you have this error (backend frontend specific page ?

frontend item view?

backend FLEXIcontent "home" (dashboard) ?


regards

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47424 by pxion129
Replied by pxion129 on topic JRule Fatal Error
I placed the code in the file as requested and am still receiving the same error message. See the attachment for how I placed the code you gave me.

ggppdk wrote: Hello

please test this fix:

-- edit the file giving the error:
administrator/components/com_flexicontent/models/flexicontent.php

-- at the top of the file find:
if (FLEXI_J16GE) jimport('joomla.access.accessrules');
and after it add:

Code:
if (FLEXI_J16GE) jimport('joomla.access.rules');

and retry

Regards

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47444 by pxion129
Replied by pxion129 on topic JRule Fatal Error
Hello,

"/home/content/56/6850156/html/" is a path automatically set by Joomla as a temp folder. This is not the path to my site.

SEF is turned on.

For security purposes, I don't feel comfortable sharing with you my site's login information.

ggppdk wrote: Hello

is the path that you have installed Joomla ?:

/home/content/56/6850156/html/

is SEF enabled ?
please backup your .htaccess file and try with the default joomla .htaccess


the statement i gave you made sure that file is included, so this is strange

after doing the above, you may send a PM with site URL and super admin login to review this,

Regards

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47446 by pxion129
Replied by pxion129 on topic JRule Fatal Error
I can tell you, the issue has nothing to do with the location of the temporary folder, again, set automatically by Joomla.

I didn't have any issue with your extension until this week and I've been using it since last year.

ggppdk wrote: Hello

what do you mean temporary ?

/home/content/56/6850156/html


your message says:
/home/content/56/6850156/html/administrator/components/com_flexicontent/models/flexicontent.php

so it must be the folder that the joomla is installed

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47461 by ggppdk
Replied by ggppdk on topic JRule Fatal Error
Hello

so:
/home/content/56/6850156/html
is the installation folder of joomla


if you execute:
Code:
jimport('legacy.access.rules');

then the needed file should be included:
/home/content/56/6850156/html/libraries/legacy/access/rules.php


or for the purpose of testing use:
Code:
require_once('/home/content/56/6850156/html/libraries/legacy/access/rules.php');


Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47506 by pxion129
Replied by pxion129 on topic JRule Fatal Error
Resolved

Here's the cause:

In Joomla 3.3, JRules has changed to JAccessRules. Flexicontent.php is looking for JRules.


Solution:

JRules is depreciated and replaced with JAccessRules. Once I changed
Code:
$rules = new JRules($asset->rules);
to
Code:
$rules = new JAccessRules($asset->rules);
as instructed in libraries/joomla/access/rules.php, this resolved the error. Other areas with "New JRules" code will also need to be updated to "New JAccessRules".

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #47510 by ggppdk
Replied by ggppdk on topic JRule Fatal Error
Hello

class JRules is indeed being replaced by JAccessRules

but it is not removed in J3.x

-- the JRules is deprecated and is to be removed in J4.0

-- if you download latest Joomla 3.3 package you will see that

1. it still exists in:
libraries/legacy/access/rules.php

and you can include it with:
jimport('legacy.access.rules');


-- before i wrongly said:
jimport('joomla.access.rules');

but this is good for J2.5 and not for J3.3, which would need:
jimport('legacy.access.rules');

but the:
Code:
require_once('/home/content/56/6850156/html/libraries/legacy/access/rules.php');

would have surely worked


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save