PDA

View Full Version : Action not found after upgrading to 3.0.7


MissKalunji
02-20-2005, 06:16 AM
I just uploaded to 3.0.7 and now im getting this erro when i got o my ucash

http://www.dancehallareaz.com/forum/ushop.php

IT tells me that : no action was found what do i do to fix that?

I just uploaded to 3.0.7 and now im getting this erro when i got o my ucash

http://www.dancehallareaz.com/forum/ushop.php

IT tells me that : no action was found what do i do to fix that?


ok i was able to fix it now my next question how can i mass give points?

between worlds
02-20-2005, 01:27 PM
How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?

Viktor Kraft
02-20-2005, 02:17 PM
How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?
Looks like you haven't rehacked your files after the upgrade. This may be the problem.

between worlds
02-20-2005, 02:20 PM
I'll give that a try. I'm a complete ditz with php. Thanks Viktor.

MissKalunji
02-20-2005, 02:52 PM
How did you fix it? I just upgraded to 3.0.7 and there's no Ushop menu in my admincp and I keep getting the No Actions found message.

When I tried to direct link to the /uttstoreadmin.php file this is the message I got:

Warning: Invalid argument supplied for foreach() in /admincp/uttstoreadmin.php on line 492

Anybody able to give any help?


all i did i was missing this and i saved

Find:

(THIS IS LOCATED NEAR THE VERY BOTTOM OF GLOBAL.PHP.)if (DB_QUERIES)
{
$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
echo "End call of global.php: $aftertime\n";
echo "\n<hr />\n\n";
}


Add Above:// ##

<ucs>
// Unserialize uShop Actions.
$storeactions = unserialize($datastore['utt_store_act']);

// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
if ($theaction['active'] == "1") {
$allowed = explode(",", $theaction['allowedgroups']);
foreach ($allowed as $allow) {
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
$canenter = "1";
}
}
$denied = explode(",", $theaction['deniedgroups']);
foreach ($denied as $deny) {
if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) {
unset($canenter);
}
}
if (!isset($canenter)) {
$canenter = "0";
}
if (THIS_SCRIPT == 'ushop') {
if ($canenter == 1) {
$action1[$actionid] = $theaction;
}
if ($theaction['showinstore'] == 1) {
(isset($actioncount) ? $actioncount++ : $actioncount = "1");
}
}
if ($canenter == 1 && $theaction['showinstore'] == 1) {
eval('$ushop_navbar .= "' . fetch_template('navbar_uttstore_actions') . '";');
}
}
}
// The end all solution.
unset($theaction);
unset($storeactions);
if (THIS_SCRIPT == 'ushop') {
$storeactions = $action1;
}
unset($action1);
// ## </ucs>



and as for the admin part redo the admin part from the installation menue

Link14716
02-22-2005, 09:20 PM
For mass giving points, there should be an addon if you just want to give it to a few users in the full releases forum. If you want to give points to all users, use this query:
UPDATE user SET uttpoints=uttpoints+X;
where X is the amount of points to give. If you want to give points based on their postcount, open admincp/uttstoreadmin.php?do=giveoldpointsl in your browser.