Hi all.
Just adding a clean install for testing and get this.
Undefined variable: version in /home/sites/xx/public_html/xx/install/rpc.php on line 52
Thanks.
(edited some wrong info)
Undefined variable: version in /home/sites/xx/public_html/xx/install/rpc.php on line 52
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Undefined variable: version in /home/sites/xx/public_html/xx/install/rpc.php on line 52
Just did a new install from here https://github.com/CE-PhoenixCart/Phoen ... master.zip
Installed no problem - sorry I don't know what issue you have had.
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: Undefined variable: version in /home/sites/xx/public_html/xx/install/rpc.php on line 52
1. Line 52 is only reached when you are using a MariaDB version between 10.0.0 and 10.2.1 (inclusive). So that's what the problem is. It needs a more up-to-date MariaDB. See Requirements. If you want to ignore this, you could of course comment out the version check code. Or move line 49 to line 35. So it looks like If you do this, you should expect other things to be broken afterward, because that's why we have minimum versions for MySQL and MariaDB.
2. The last time I fixed something in that file, I broke the error messages. Fixed here.
3. I have now added more error logging, which might be easier to find than the RPC messages. Here.
And of course, the simple solution would be to use a version of MySQL or MariaDB that is still supported. That's at least MySQL 5.7.7 and MariaDB 10.2.2 from our perspective. MySQL would tell you 5.7.34 and MariaDB would say 10.2.40.
Code: Select all
$db->select_db(trim($_GET['name']));
if ($db->errno) {
exit("[[0|{$db->error}]]");
}
exit('[[1]]');2. The last time I fixed something in that file, I broke the error messages. Fixed here.
3. I have now added more error logging, which might be easier to find than the RPC messages. Here.
And of course, the simple solution would be to use a version of MySQL or MariaDB that is still supported. That's at least MySQL 5.7.7 and MariaDB 10.2.2 from our perspective. MySQL would tell you 5.7.34 and MariaDB would say 10.2.40.
-
Nigel
- Contributor
- Posts: 114
- Joined: Mon Jan 11, 2021 1:39 am
- Phoenix Version:
- Has thanked: 29 times
- Been thanked: 8 times
Re: Undefined variable: version in /home/sites/xx/public_html/xx/install/rpc.php on line 52
Interesting.
I updated an existing cart to the latest version and that seemed to have worked.
There is an issue with that update which I mentioned elsewhere and your suggestion was a vanilla site to test and recreate the error. Hence this new install.
Could checkout_shipping.php be affected by too lower spec db etc. after the update ?
Thanks.
I updated an existing cart to the latest version and that seemed to have worked.
There is an issue with that update which I mentioned elsewhere and your suggestion was a vanilla site to test and recreate the error. Hence this new install.
Could checkout_shipping.php be affected by too lower spec db etc. after the update ?
Thanks.