JRule Fatal Error

More
10 years 5 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
10 years 5 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...

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

More
10 years 5 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
10 years 5 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...

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

More
10 years 5 months ago #47515 by ggppdk
Replied by ggppdk on topic JRule Fatal Error
Hello,

-- anyway instead of adding:
jimport('legacy.access.rules');

in r1910 we :
-- replaced the JRules for JAccessRules
-- and added:
Code:
jimport('joomla.access.rules');



thanks for feedback !!


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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.385 seconds
Save
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