Just a tease

30 minutes ago, magicflyer said:

Probably not. This new phpVMS is based on Laravel which is a whole different framework and set of APIs. But hey…code is code. Someone’s gonna find a way to copy/paste things around and make it work.

so why change to laravel? there’s so much knowledge and so many addons/snippets about the current framework it seems mad to throw all that away. 

On all the hosting sites Ive come across you can set your php version to whatever you want, so I’ll probably keep running the old phpvms and I imagine I’m not gonna be the only one..

PHP 5 will stop being supported in the next few months. You can of course keep using the older phpVMS version although I believe that some developers will update their modules accordingly. I personally plan to rewrite most of my modules as soon as the new version is ready for release. Also, it will be easier to develop addons considering that laravel is a framework that a lot know.

supported as in… providers won’t run it any more on their servers? 

Yes, that’s correct

It seems that won’t be the case. I asked my provider if they plan to disable any 5.x versions and when, and  this is what came back:

 

Quote

hank you for contacting us.
Various PHP versions come pre-installed with cPanel by default. 
We are not planning to disable old PHP versions unless there would be a huge security problem to keep a certain PHP version alive.

If you have additional questions or requests, feel free to contact us.

 So it seems there is no pressing reason to move existing architecture to php 7

On 10/13/2017 at 4:51 AM, mischka said:

It seems that won’t be the case. I asked my provider if they plan to disable any 5.x versions and when, and  this is what came back:

 

 So it seems there is no pressing reason to move existing architecture to php 7

It’s time to say bye to PHP 5. cPanel is deprecating easyApache 3 this Jan, which include 5.3 and I believe 5.4. There are huge advantages to PHP 7+. If your host is running easyApache 4, you should be able to run/switch between 5.6/7+

will phpvms 5.5.2 run on php7?

15 hours ago, flyalaska said:

will phpvms 5.5.2 run on php7?

I don’t know version numbers but if it’s the one that I updated (the v7 branch in the phpvms_v2 repo), then yes. 5.5.2 makes me think it’s the simpilot version, I’m not sure about that

Yes, it is Dave’s version

2 hours ago, flyalaska said:

Yes, it is Dave’s version

To be honest, I’m not sure. However, you can install phpcs (PHP code sniffer) and then the compat checker, and run it in the directory of that phpvms copy. 

Install commands:

https://github.com/nabeelio/phpvms_v2/blob/php70/Makefile#L6

Command to run it:

https://github.com/nabeelio/phpvms_v2/blob/php70/Makefile#L16

I tried a new install on php7 and get an error

You need PHP 5 (your version: 7.0.2-pl0-gentoo)

Did you do anything to get it to install?

On 12/4/2017 at 1:23 PM, lorathon said:

I do not remember getting an error.  But I think that I installed and then upgraded to 7.  

Looking at the checkinstall.php file I found this.

if ($version[0] == ‘4’ || $version == ‘5.0’ || $version == ‘5.1’) { error(‘Error!’, ‘Must be running at least PHP 5.2’); } else { $version = phpversion(); success(‘OK’, “PHP version is {$version}.x”); }

There maybe some more in the install files that are stopping the install.  Try removing this or setup on a php5 and then moving to php7

In order to force an install on 7.0, editing checkinstall.php did nothing. Instead, you can just remove the following lines from install/includes/‘Installer.class.php’:

 

 if($version[0] != '5') { $noerror = false; $type = 'error'; $message = 'You need PHP 5 (your version: '.$version.')'; } else { $type = 'success'; $message = 'OK! (your version:'.$version.')'; }

Also, it will throw an error upon completion.. Just ignore it, it seemed to install fine.

I get this error when I click next step after filling out the form.

Uncaught Error: Call to undefined function mysql\_connect() in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb\_mysql.class.php:98 Stack trace: #0 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb.class.php(195): ezDB\_mysql-\>connect('phpvms', 'my password', 'localhost') #1 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/includes/Installer.class.php(139): DB::connect('phpvms', 'my password', 'phpvms', 'localhost') #2 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/install.php(49): Installer::AddTables() #3 {main} thrown in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb\_mysql.class.php on line 98

 

5 hours ago, flyalaska said:

I get this error when I click next step after filling out the form.

Uncaught Error: Call to undefined function mysql_connect() in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysql.class.php:98 Stack trace: #0 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb.class.php(195): ezDB_mysql->connect(‘phpvms’, ‘my password’, ‘localhost’) #1 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/includes/Installer.class.php(139): DB::connect(‘phpvms’, ‘my password’, ‘phpvms’, ‘localhost’) #2 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/install.php(49): Installer::AddTables() #3 {main} thrown in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysql.class.php on line 98

 

I tried to recreate this on localhost using xampp.. The closest I got was when I had the wrong SQL type selected. It is my opinion that either you:

  1. Are using mySQLi and attempted an install using mySQL, or vice versa.

  2. Have created your database as the wrong type or your database user is set to % (any) rather than localhost.

  3. Used the wrong credentials.

14 hours ago, flyalaska said:

I get this error when I click next step after filling out the form.

Uncaught Error: Call to undefined function mysql_connect() in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysql.class.php:98 Stack trace: #0 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb.class.php(195): ezDB_mysql->connect(‘phpvms’, ‘my password’, ‘localhost’) #1 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/includes/Installer.class.php(139): DB::connect(‘phpvms’, ‘my password’, ‘phpvms’, ‘localhost’) #2 /data/7/0/70/127/396779/user/403816/htdocs/phpvms/install/install.php(49): Installer::AddTables() #3 {main} thrown in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysql.class.php on line 98

 

I think you need to set the database type as mysqli

Tried both ways, mysql and mysqli

I get a different error with mysqli

Warning: mysqli::\_\_construct(): (HY000/2002): No such file or directory in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb\_mysqli.class.php on line 101 Fatal error: Uncaught \<blockquote\>\<font face=arial size=2 color=000099\>\<b\>Last Error --\</b\> [\<font color=000000\>\<b\>No such file or directory (2002)\</b\>\</font\>]\<br /\>[\<font color=000000\>\<b\>\</b\>\</font\>]\</font\>\<p\> \</blockquote\>\<hr noshade color=dddddd size=1\> thrown in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb\_mysqli.class.php on line 106

Line 106 is

throw new ezDB\_Error(mysqli\_connect\_error(), mysqli\_connect\_errno());