ksa
Posts: 27
|
| Posted: 02/17/2006, 4:53 AM |
|
After converting my project to version 3.0.2.2 I get the following error messages on my published pages:
Warning: Missing argument 3 for ccgetevent() in /usr/home/dan11476/public_html/Common.php on line 229
Lines 228-237 in Common.php look like this:
//CCGetEvent @0-7AE506F3
function CCGetEvent($events, $event_name, & $sender)
{
$result = true;
$function_name = (is_array($events) && isset($events[$event_name])) ? $events[$event_name] : "";
if($function_name && function_exists($function_name))
$result = call_user_func_array($function_name, array(& $sender));
return $result;
}
//End CCGetEvent
I know nothing about PHP (which is why I use CodeCharge, so I have no clue what's wrong. Hope someone can help.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 02/17/2006, 5:34 AM |
|
That coding looks ok.
It is probably the calling process that is supplying two parameters where it should pass 3.
In your usr/home/dan11476/public_html directory you could do a search for CCGetEvent in all .php files and see if one of them has only 2 parameters between the parentheses
CCGetEvent( bla, bla )
that is the culprit, but to be honest I would contact Support.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
peterr
Posts: 5971
|
| Posted: 02/17/2006, 2:33 PM |
|
In 90%+ cases this means that either:
1. Common files were not re-generated, so you're using Common files from 2.3 with 3.0 pages.
or 2. Generated code was modified (either common or pages).
Usually pressing F9 would fix this problem. Otherwise delete Common.php from the project folder and press F9 again.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
ksa
Posts: 27
|
| Posted: 02/20/2006, 3:04 AM |
|
Thanks for the replies. I did contact support and they told me to delete all PHP files (except those ending with "_events.php") and regenerate all the php code . I did that and everything was fine.
|
 |
 |
|