14 minutes ago, HighFlyerPL185 said:
I have a skin that I made on 2.1.935 and I’d like for the skin to run on that, as I’m more familiar with the syntax/templates. How hard is it to convert certain things?
Is there a reason you are wanting to upgrade versions (e.g. host forces a higher PHP version?), because otherwise if you have a working install then I wouldn’t touch it too much.
With the actual upgrade, from phpVMS 2.x to phpVMS 5.5.x (or 5.5.2.72) it’s pretty much just getting it to install with minimal errors and then changing your skin’s template files from .tpl to .php. And inside any data classes in core/common (mostly any modules you have installed, the default files should already have this), making sure that the syntax is
public static function
instead of just public function.
20 minutes ago, HighFlyerPL185 said:
On localhost:8080, there’s various errors. Airports won’t fetch data automatically (how can this be updated),
This is a known issue (and has been for years since VACentral got changed), there isn’t a preferred way to fix it right now. I think most people are still finding them manually and importing them via .csv. There’s a bunch of forum posts about this.
21 minutes ago, HighFlyerPL185 said:
fleet cannot be added with a red bootstrap notice ‘There was an error while adding fleet’.
What PHP version and MySQL/MariaDB version are you running? This sounds like a database issue.
23 minutes ago, HighFlyerPL185 said:
Google maps also do not work, will this suffice on DavidJClark/phpvms repository
Yep that’s another known issue (since Google changed their mapping API terms). The link to change to OSM maps on Nabeel’s github is useful and people have had success with that method. The full discussion is here:
24 minutes ago, HighFlyerPL185 said:
Are these issues addressed in DavidJClark/phpvms repository … or maybe is it worth starting from scratch with ProAviaAZ/phpvms repo ? Are they also addressed there ? Is this similar to the 2.1.935 version ?
Unfortunately not, you’d have to make the same changes to the map files in whichever phpVMS version you use. But the process is the same for all of them, just with slight changes to the files and file extension (.tpl vs .php).
If you are planning on starting from scratch then ProAvia’s repo is a good start especially if you are on a high php version. See here.
27 minutes ago, HighFlyerPL185 said:
Is the skin conversion as easy as drag n drop to /lib/skins directory ?
I addressed this at the start, it’s drag and drop but then you would have to change your file extension and watch out for any errors and fix them as they pop up.