error RanksData.class.php on line 236 after submit a register

well I get this error after submit a new register. even dough with this error the pilot is registered !!

I am on paid sever and using .TPL . ocean blue v2 skin , I now is a .PHP but I managed to change to .TPL

Same problem with Ocean Blue v2 Skin.

235 # Add it to the activity feed
[b]236 ActivityData::addActivity(array([/b]
237 'pilotid' => $pilotid,
238 'type' => ACTIVITY_PROMOTION,
239 'refid' => $pilotid,
240 'message' => htmlentities($message),
	 ));

Sorry to bring up an old thread but my pilots are getting this error relating to this code when trying to file a PIREP manually on the site. They are getting:

 

Fatal error: Class 'ActivityData' not found in /home/alaskair/public\_html/core/common/RanksData.class.php on line 236 

 

42 minutes ago, shakamonkey88 said:

Sorry to bring up an old thread but my pilots are getting this error relating to this code when trying to file a PIREP manually on the site. They are getting:

 

Fatal error: Class ‘ActivityData’ not found in /home/alaskair/public_html/core/common/RanksData.class.php on line 236

 

What version of phpVMS are you using?

In /core/common - do you have an ActivityData.class.php file?

11 minutes ago, ProAvia said:

What version of phpVMS are you using?

In /core/common - do you have an ActivityData.class.php file?

Yes I have the file - I’m running 2.1.936.

My old 2.1.936 - installed 4/2014 - doesn’t have an ActivityData.class.php. My new 5.5.2 install does have that file.

I didn’t think 2.1.936 came with that file - but I’ve been wrong before.  Maybe someone can verify if the ActivityData.class.php file was in version 2.

I believe the error you posted is saying that the ActivityData.class.php file is not present - or maybe not in the correct path.

In any case, you may want to consider upgrading the the new version 3 once it’s released. That should rectify the issue. 

 

2 hours ago, ProAvia said:

I didn’t think 2.1.936 came with that file - but I’ve been wrong before.  Maybe someone can verify if the ActivityData.class.php file was in version 2.

ActivityData.class.php was added in one the beta versions of phpVMS, it wasn’t in phpVMS v2.1.936 at that time.

Ok… so could I just delete it? I only get an error when I pilot submits a manual PIREP, which submits successfully anyway. Just get the error message as above. 

9 hours ago, Kyle said:

ActivityData.class.php was added in one the beta versions of phpVMS, it wasn’t in phpVMS v2.1.936 at that time.

Thanks Kyle!

 

Deleting ActivityData.class.php isn’t going to alleviate the error.

RanksData.class.php appears to be calling “ActivityData”. So you have 2 options. Either download a new RanksData.class.php for version 2.1.x that doesn’t have the call - or - comment out the entire section in your current RanksData.class.php file referencing that call.

Maybe grab the complete file contents from here:  https://github.com/nabeelio/phpVMS/blob/master/core/common/RanksData.class.php

If you decide on the second option, post lines 230-260 so someone here can help make sure you are commenting out all of the suspect lines.

In either case, make a backup of the original file. Then replace the file or contents and test it out.