Jump to content

[SOLUTION] Strict Standards Error(New php)


MaciejO

Recommended Posts

Hello there,

If anyone of you is using latest php version with phpvms you are exposed to Strict Standards error(E_STRICT error level).

Errors you will get are:

Strict Standards: Accessing static property Contact::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Contact::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Contact::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Contact::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Downloads::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Downloads::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Downloads::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Downloads::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Finances::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Finances::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Finances::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Finances::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property FrontBids::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property FrontBids::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property FrontBids::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property FrontBids::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Frontpage::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Frontpage::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Frontpage::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Frontpage::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property FSFK::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property FSFK::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property FSFK::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property FSFK::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property kACARS_Free::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property kACARS_Free::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property kACARS_Free::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property kACARS_Free::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Login::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Login::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Login::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Login::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Logout::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Logout::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Logout::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Logout::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property News::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property News::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property News::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property News::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Pages::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Pages::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Pages::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Pages::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Pilots::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Pilots::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Pilots::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Pilots::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property PIREPS::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property PIREPS::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property PIREPS::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property PIREPS::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Profile::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Profile::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Profile::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Profile::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Registration::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Registration::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Registration::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Registration::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Registration::$get as non static in server:\phpvms\core\modules\Registration\Registration.php on line 25
Strict Standards: Accessing static property RouteMap::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property RouteMap::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property RouteMap::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property RouteMap::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property Schedules::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property Schedules::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property Schedules::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property Schedules::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property XML::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property XML::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property XML::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property XML::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75
Strict Standards: Accessing static property ACARS::$post as non static in server:\phpvms\core\classes\CodonModule.class.php on line 69
Strict Standards: Accessing static property ACARS::$get as non static in server:\phpvms\core\classes\CodonModule.class.php on line 70
Strict Standards: Accessing static property ACARS::$controller as non static in server:\phpvms\core\classes\CodonModule.class.php on line 72
Strict Standards: Accessing static property ACARS::$activeModule as non static in server:\phpvms\core\classes\CodonModule.class.php on line 75

To resolve this problem simply open CodonModule.class.php and just after php opening tag add:

ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

That's it fixed!

Mac... :ph34r:

  • Like 4
Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...

Hi,

I tried using that code

ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

it did work for most of the errors but I still get some errors like this one...

Strict Standards: Accessing static property Schedules::$post as non static in /public_html/core/modules/Schedules/Schedules.php on line 28

anyone know how to fix that?

I also get this error error in the admin panel...

Open Flash Chart

JSON Parse Error [syntax Error]

Error at character 0, line 1:

0: <br />

If anyone could help I would appreciate it.

Link to comment
Share on other sites

  • 1 month later...

Hi,

I tried using that code

it did work for most of the errors but I still get some errors like this one...

Strict Standards: Accessing static property Schedules::$post as non static in /public_html/core/modules/Schedules/Schedules.php on line 28

anyone know how to fix that?

I also get this error error in the admin panel...

Open Flash Chart

JSON Parse Error [syntax Error]

Error at character 0, line 1:

0: <br />

If anyone could help I would appreciate it.

Now the schedule error, are you getting it on the schedules page? I'm getting it as well; a fix would be nice.

The Open Flash Chart error is supposed to be there; if it's there, your website is actually more secure. Nabeel has found out that these charts (which are third party, by the way) have a loophole which allows hackers to get through and hack the website (happened to AirTran Virtual; that's why I have 0 hours since we are still rebuilding :( ).

Therefore, I believe the code is purposely edited to cause an error or it's just removed in the security patch (I believe you are going to be running the security patch by getting that error) so the loophole is gone. No idea whether it's going to be updated or not, or just removed at all, but we'll see.

Link to comment
Share on other sites

  • 3 months later...

Yup I too have used the code mentioned in the initial post and I still have errors. For example, if I try to accept a new pilot registration or if I try to add airports in, it throws up an error. The error I get when trying to add the airports is as follows:

Strict Standards: Accessing static property Operations::$post as non static in /home5/spiritc1/public_html/virginatlanticvirtualco/airline-operations/admin/modules/Operations/Operations.php on line 295

Strict Standards: Accessing static property Operations::$post as non static in /home5/spiritc1/public_html/virginatlanticvirtualco/airline-operations/admin/modules/Operations/Operations.php on line 862

It also then doesn't show the airports in the usual chart (I suspect this might be the open flash thing), but the airport is in the database.

I am sure this isn't to do with the Operations.php file but is caused by another file acting on it. However, I have no idea which file or how to resolve.

As always, any advice or guidance would be much appreciated. I may have to switch back to VAFS or FS Airlines otherwise which I really really don't want to do. :(

Link to comment
Share on other sites

Ok so I have managed to make a bit of progress although I'm not sure it's the right thing to do :/ So the problems:

None of the information lists regarding pilots, airports, fleet show up in the admin panel and when I try to add something new in any of these areas I get a "strict standards" error message.

Also none of the flash charts show and I get an error message that says;

Open Flash Chart

JSON Parse Error [syntax Error]

Error at character 0, line 1:

0: <br />

So I have spent nearly two whole days and nights trying to read up, understand and find out how to fix this and I don't even know the first thing about coding php. But as I said, I made a little progress.

As per my previous comment, I did the suppressing errors thing but it didn't work. However, when looking at different files, I went into the codon.config.php and within the first few lines there is this code;

@ini_set('display_errors', 'on');

which to me looks like error reporting. So I changed it to;

@ini_set('display_errors', 'off');

The result is that my error messages went away (obviously) but also, the info lists suddenly appeared as they should. So now I can see my new pilots, airports, routes and everything.

Now, I am not recommending that you do this before a fresh install as I suspect it will suppress all sorts of other errors if you have them. However, once you're installed and you only have the same problems as me left then try it and hopefully it will get you somewhat operational.

What this temporary fix also did was alter the "Open Flash" error to this;

Open Flash Chart

IO ERROR

Loading test data

Error #2032

This is the URL that I tried to open:http://www.virginatlanticvirtual.co.uk/airline-operations/admin/action.php/dashboard/pirepcounts

Now I'm kinda thinking that this Open Flash error is something to do with filepath and passing the data to the json file. But then again I know nothing about coding.

Any thoughts anyone?

*** Edit ***

Even more progress!

What I didn't mention in the above, was that I had already edited the filepath in the OFCharts.class.php file to point to the open-flash-chart.php file using the full path. As I had already said, the new error looked like a filepath issue so I went back into the OFCharts file and set the filepath back to it original one (/php-ofc-library/open-flash-chart.php). I then went to my admin panel, hit refresh and bingo. All the charts are there, the info lists too.

Fingers crossed, all seems to be well again :)

Link to comment
Share on other sites

Flippin typical, I spent ages looking through posts on here for a fix! Anyways, mine has worked and from the looks of it, I think its the same thing? Both this fix and my fix look like they just switch error reporting off.

Thanks anyways for your resonse, I'm not going to start messing with it again now :P

Link to comment
Share on other sites

  • Moderators

I am always trying to help as much as i can. :) Happy that you solved some of your problems. As soon as everything is ok, you can write a new post which will explain the problems and their correct solutions. I think that this is going to help all the others who may have the same problems.

Link to comment
Share on other sites

  • 5 months later...

im having the same issue of the 1st post, I tried the fix but now im getting

Warning: Creating default object from empty value in public_html/va/core/classes/Vars.class.php on line 74

Pilots Online

There are no pilots online!

Newest Pilots

Fatal error: Cannot re-assign auto-global variable _FILES in public_html/va/core/common/PilotData.class.php on line 436

Any ideas please?

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...