in2tech Posted March 5, 2018 Report Share Posted March 5, 2018 I have completely removed the tables from the database and reinstalled and I still get this error since moving the site over. If I completely remove it how can this still be happening and not install correctly on a Fresh brand new installation of the VAForum 2 Module? Deprecated: Non-static method ForumData::is_moderator() should not be called statically, assuming $this from incompatible context in blah blah blah..... Quote Link to comment Share on other sites More sharing options...
web541 Posted March 5, 2018 Report Share Posted March 5, 2018 Go into core/common/ForumData and find all of these public function and replace them with this public static function and that should fix it. Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 Same thing for Screenshot Center but screen shot common file? Deprecated: Non-static method ScreenshotsData::getpagnated() should not be called statically, assuming $this from incompatible context in /home/fswbreak/public_html/lib/skins/Be/Screenshots/screenshots_viewer.php on line 20 And thank you very much that fixed the forums Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 Yep worked like a champ. Fixed the screen shot one too. That was fast and you didn't even have to reply Registration error. Any ideas on it while you are on a roll Warning: imagecreatefromstring(): Empty string or invalid image in /home/fswbreak/public_html/core/common/PilotData.class.php on line 1016 Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted March 6, 2018 Administrators Report Share Posted March 6, 2018 44 minutes ago, jnascar said: Yep worked like a champ. Fixed the screen shot one too. That was fast and you didn't even have to reply Registration error. Any ideas on it while you are on a roll Warning: imagecreatefromstring(): Empty string or invalid image in /home/fswbreak/public_html/core/common/PilotData.class.php on line 1016 I believe that error has to do with the rank image link in the ranks table being a relative link (/lib/images/ranks/rankimage.png) instead of an absolute link (http://sitename.com/lib/images/ranks/rankimage.png). I encountered this issue when approving PIREPS and regenerating signatures. In your caae - as a registration error - I guess it's happening when it attempts to assign a rank image to a new pilot. Changing the link in the table from relative to absolute should resolve the issue. Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 36 minutes ago, ProAvia said: I believe that error has to do with the rank image link in the ranks table being a relative link (/lib/images/ranks/rankimage.png) instead of an absolute link (http://sitename.com/lib/images/ranks/rankimage.png). I encountered this issue when approving PIREPS and regenerating signatures. In your caae - as a registration error - I guess it's happening when it attempts to assign a rank image to a new pilot. Changing the link in the table from relative to absolute should resolve the issue. I'll try that. Thank you. Let you know if it works! Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 Did not work, unless you have to make them all the ranks absolute links? Thanks! Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted March 6, 2018 Administrators Report Share Posted March 6, 2018 (edited) You may have to change all the rank links. Originally I had absolute links, but changed to relative when I changed from HTTP to HTTPS - because I was advised it would make things easier in the future. This is when the isssue surfaced when approving PIREPS. I investigated and found the issue when regenerating signatures also. I have not seen it in Registration - but we don't use the default phpVMS module for that. Anything that has to do with rank image in PirepDataClass seems to produce the error. EDIT: try running the regenerate signatures from Admin, Site & Settings, Maintenance, Reset Signatures and see if the error shows for all pilots. If error shows for all pilots, then all rank links need to be absolute. Edited March 6, 2018 by ProAvia Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 17 minutes ago, ProAvia said: You may have to change all the rank links. Originally I had absolute links, but changed to relative when I changed from HTTP to HTTPS - because I was advised it would make things easier in the future. This is when the isssue surfaced when approving PIREPS. I investigated and found the issue when regenerating signatures also. I have not seen it in Registration - but we don't use the default phpVMS module for that. Anything that has to do with rank image in PirepDataClass seems to produce the error. EDIT: try running the regenerate signatures from Admin, Site & Settings, Maintenance, Reset Signatures and see if the error shows for all pilots. If error shows for all pilots, then all rank links need to be absolute. Same error for every pilot and the absolute did not work either! Still this: Warning: imagecreatefromstring(): Data is not in a recognized format in for every pilot when Resetting Signatures and during registration! Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted March 6, 2018 Administrators Report Share Posted March 6, 2018 Something is messed up with the link format. List the full link URL here or PM to me and I'll have a look Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 6, 2018 Author Report Share Posted March 6, 2018 And more: This is in the admin area of course, when I approve pirep's! Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted March 7, 2018 Administrators Report Share Posted March 7, 2018 For the first one - on line 812 - change 'public function' to 'public static function' For the second - post the full URL for the ranks from the ranks table in the database so we can see if there is a formatting error. Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 7, 2018 Author Report Share Posted March 7, 2018 (edited) 2 hours ago, ProAvia said: For the first one - on line 812 - change 'public function' to 'public static function' For the second - post the full URL for the ranks from the ranks table in the database so we can see if there is a formatting error. k, I'll give it a try! The full url IS in the database structure!, so that's not it! I don't think! Just a snip it of it they are all filled in with absolutely link! Edited March 7, 2018 by jnascar Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted March 7, 2018 Administrators Report Share Posted March 7, 2018 Don't know if it makes a difference or not, but my rank images are in '/lib/images/ranks/' http://www.sitename.com/lib/images/ranks/rankimage.png In any case, make sure your images are actually located in the path you show in the ranks table. Quote Link to comment Share on other sites More sharing options...
in2tech Posted March 9, 2018 Author Report Share Posted March 9, 2018 (edited) Anybody know how to get the VAForum 2 to show images like New post etc... like other forum boards? I am NOT gonna use another board. I like that they can use it with their pilot id sign on. I have seen it done before, but don't remember where the info is I actually know which ones are NEW post now cause of some code I found on here ages ago. I was just wanting a image that showed me and others they are new! Not a big deal, but would like to have it if I can Of course I think this only does 5 post so if there were more it might get confusing! Oops should have made another post as this is about the error stuff, my bad! Thanks! Edited March 9, 2018 by jnascar 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.