latitude24 Posted February 27, 2018 Report Share Posted February 27, 2018 Hello, grabbed a module from crazycreations for Auto Assign. I installed it. It works but when I hit Generate routes this pops up: Deprecated: Non-static method AutoAssignData::getstartitineraryid() should not be called statically, assuming $this from incompatible context in /core/modules/AutoAssign/AutoAssign.php on line 201 CC forums are quiet dead so that’s why I’m posting here. Seems more a PHP issue than their mod. Many help is greatly appreciated. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 27, 2018 Administrators Report Share Posted February 27, 2018 That's a code error on their part Quote Link to comment Share on other sites More sharing options...
latitude24 Posted February 27, 2018 Author Report Share Posted February 27, 2018 Ok. Hopefully they answer soon. If not, something you can point me in the right direction? Quote Link to comment Share on other sites More sharing options...
web541 Posted February 27, 2018 Report Share Posted February 27, 2018 1 hour ago, latitude24 said: Ok. Hopefully they answer soon. If not, something you can point me in the right direction? Inside core/common/AutoAssignData, find all of these public function change them to this public static function And that should work. If it doesn't, then it's being called elsewhere and you'll have to wait for a reply considering the module is payware. 1 Quote Link to comment Share on other sites More sharing options...
latitude24 Posted February 27, 2018 Author Report Share Posted February 27, 2018 Web541, Thanks pal. I’ll let you know how I make out. Quote Link to comment Share on other sites More sharing options...
latitude24 Posted February 27, 2018 Author Report Share Posted February 27, 2018 (edited) Web541, found it. Just one little 'static' guy left out. I missed it a few times. Code blind Thanks so very much! Edited February 27, 2018 by latitude24 update 1 Quote Link to comment Share on other sites More sharing options...
MarlonM Posted February 16, 2023 Report Share Posted February 16, 2023 (edited) Hi, I have several issues. I purchased the Auto Assign V1.4 from Crazycreatives but I can't make it work. I followed all steps in the instructions but when pilots try to access the module it loads a blank page if StylaSking (a sking we are using) is active or gets "Error: Purchase Verification Failed" with the default skin active. Also, I am getting the following message when resetting assignments: "Deprecated: Non-static method AutoAssignData::getstartitineraryid() should not be called statically in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 189 Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 211 Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 289" I just copied the first 3 error messages but it repeats several times. I attempt to get help from the CrazyCreatives forum but can get in or submit the contact form as also asks me for a re-captcha. Hopefully someone here can Help me. Edited February 16, 2023 by MarlonM Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted February 16, 2023 Administrators Report Share Posted February 16, 2023 4 hours ago, MarlonM said: Hi, I have several issues. I purchased the Auto Assign V1.4 from Crazycreatives but I can't make it work. I followed all steps in the instructions but when pilots try to access the module it loads a blank page if StylaSking (a sking we are using) is active or gets "Error: Purchase Verification Failed" with the default skin active. Also, I am getting the following message when resetting assignments: "Deprecated: Non-static method AutoAssignData::getstartitineraryid() should not be called statically in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 189 Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 211 Warning: count(): Parameter must be an array or an object that implements Countable in /home/u944692218/domains/dhalionairva.com/public_html/crew/admin/modules/AutoAssign/AutoAssign.php on line 289" I just copied the first 3 error messages but it repeats several times. I attempt to get help from the CrazyCreatives forum but can get in or submit the contact form as also asks me for a re-captcha. Hopefully someone here can Help me. phpVMS version? PHP version? MySQL/MariaDB version? What skin are you using? Provide a link to the skin. Quote Link to comment Share on other sites More sharing options...
MarlonM Posted February 17, 2023 Report Share Posted February 17, 2023 4 hours ago, ProAvia said: phpVMS version? PHP version? MySQL/MariaDB version? What skin are you using? Provide a link to the skin. phpVMS version? - It is 5.5.2.72 - PHP version? - 7.2 - MySQL/MariaDB version? Not sure I think it's MariaDB 10.5 What skin are you using? Provide a link to the skin. https://forum.phpvms.net/files/file/18-free-stislaskin-2020-designed-for-phpvms-55272-proavia-v10-w-leaflet-book-by-map/ Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted February 17, 2023 Administrators Report Share Posted February 17, 2023 Do you have a no-attribution license for phpVMS? If not, the license requires "powered by phpVMS" in the footer of every website page that is related to phpVMS. Be sure you are fully in compliance with the licensing terms of phpVMS, all addon modules, etc. Ask you host the exact version of MariaDB. Report back once they provide that info. phpVMS 5.5.2 or 5.5.2.72 will NOT work correctly when using MariaDB 10.5 The Stisla skin is no longer supported and the developer hasn't been around for a long time. Non-static method is covered in post #4 above. Count parameter needs a small coding tweak - something similar to this as I recall: if(is_array ($foo) || $foo instanceof Countable) { if count ($foo) { do something } } This works with PHP 7.0, 7.1 and 7.2 Google... Warning: count(): Parameter must be an array or an object that implements Countable for further info. Quote Link to comment Share on other sites More sharing options...
MarlonM Posted February 17, 2023 Report Share Posted February 17, 2023 (edited) Ok, this is getting better. Non-static method is resolved. This is the only error mesage left. This is how it looks now. What am I missing? MariaDB Version: Edited February 17, 2023 by ProAvia No posting of payware code Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted February 18, 2023 Administrators Report Share Posted February 18, 2023 I have edited your post. No posting of payware code on the forums. We can discuss a possible fix via PM. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.