-
AuthorPosts
-
bgies Friend
bgies
- Join date:
- January 2011
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
January 22, 2011 at 1:25 am #159100I cannot save ja_slideshow in Joomla 1.6 using a ja_portfolio template. I get a “No_Permission” error every time I try to save it.
The problem happens on my production server and development server.
Production server is LAMP
Developer server is WAMPI’m admin on both machines and because the dev server is WAMP there should be no permission issues on it at all. I’m also a Joomla extension developer so I’ve started looking through the source code.. but haven’t found the problem yet.
Update: I should have mentioned that I am also logged into Joomla as the Super User for both machines. Also, I changed the message on line 70 of helper.php and now I get the changed message… so the error is coming from this block of code:
$user = JFactory::getUser();
$allowGroups = array(‘Super Users’, ‘Administrator’, ‘Manager’);
$finded = false;
foreach($user->groups as $group)
{
if(in_array($group,$allowGroups)){
$finded = true;
break;
}
}
if(!$finded)
{
$result[‘error’] = JText::_(‘NO_PERMISSION’);
echo json_encode($result);
exit;
}Sorry… I can’t properly debug right now… I was running Joomla System tests and changed my debugging settings for selenium and haven’t changed them back yet.
Also… I noticed you are using the $mainframe variable above this code… and I believe it is deprecated. Has ja_slideshow been updated for J 1.6?
January 22, 2011 at 2:57 am #373105Hi bgies,
Same issue. I checked both the versions of JA_Slideshow (1.0.0 and 1.0.1). Let me know if you find the root cause.
– Ganesh
bgies Friendbgies
- Join date:
- January 2011
- Posts:
- 29
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 3
- Thanked:
- 2 times in 1 posts
January 22, 2011 at 3:05 am #373107You can change the line
$allowGroups = array(‘Super Users’, ‘Administrator’, ‘Manager’);
to
$allowGroups = array(8, 7, 6);That will get it past the permissions error…. but still nothing shows on the Front End… It obviously has not been updated for J 1.6… and now I’m wondering if any of the other extensions that go with this template have either.
The template itself seems to be ok… but without the extensions I can’t do too much, so it’s hard to know for sure.
January 22, 2011 at 7:33 am #373135Thanks. Will try and revert.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 22, 2011 at 8:28 am #373139Hi all,
To fix this problem, please do as following:
– open “helper.php” file on location “modules/mod_jaslideshow/admin/”.
– Find line
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');$user = JFactory::getUser();
....
/**
* modJAAnimation class.
*
*/
Change tojimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');$user = JFactory::getUser();
$allowGroups = array('Super Users', 'Administrator', 'Manager');
$finded = false;foreach($user->groups as $group=>$group_id)
{
if(in_array($group,$allowGroups) || in_array($group_id, $allowGroups)){
$finded = true;
break;
}
}
/**
* modJAAnimation class.
*
*/
we will include this fix in the next release.February 9, 2011 at 9:45 am #375849@ hungnd
When i add your solution i,m getting the following errorOperation Failed: Failed to open file for writing.
February 19, 2011 at 10:44 pm #377503I think I have a newer version. I’m on 1.6 and was getting the same error.
I took out
if(!$finded)
{
$result[‘error’] = JText::_(‘NO_PERMISSION’);
echo json_encode($result);
exit;
}and now the module saves with default images folder, the fruitshop in the slideshow module position. I go to look at homepage but it doesn’t show up. I have module assigned to page, and published. I cleared browser cache and ja system cache.
What should I check next? I’ve been using these really cool templates but this is m first time trying to use the slideshow module.
thuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
February 22, 2011 at 7:24 am #377885Hi all,
To fix “NO_PERMISSION” error for jaslideshow module, please update this line code in the file “helper.php” in the folder “modules/mod_jaslideshow/admin/”:
$user = JFactory::getUser();
$allowGroups = array('Super Users', 'Administrator', 'Manager');
$finded = false;foreach($user->groups as $group=>$group_id)
{
if(in_array($group,$allowGroups) || in_array($group_id, $allowGroups)){
$finded = true;
break;
}
}
...
if(!$finded)
{
$result['error'] = JText::_('NO_PERMISSION');
echo json_encode($result);
exit;
}
Or replace “helper.php” file with my attach file 11385
– The slideshow module don’t show up at homepage. Please check menu assignments and assign it to the Home menu.Thanks,
-
AuthorPosts
This topic contains 8 replies, has 6 voices, and was last updated by thuanlq 13 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum