HGustavs / LenaSYS

Code Viewer and Course Organization System used in some courses at University of Skövde
57 stars 31 forks source link

Access editor does not work when using php version 8.03 #10085

Open a19isada opened 3 years ago

a19isada commented 3 years ago

When using php version 8.03, the access editor does not work. However, it works for earlier versions of php. This needs to be investigated to see what causes it and thereafter fix it.

HGustavs commented 3 years ago

Specifically if this is due to deprecation of functionality or other causes.

It could be a minor fix or either something more major that has been deprecated.

a18danli commented 3 years ago

Update the composer.json, to work with later php versions might be a good thing to test.

Ex, "require": { "php": "^7.2||^8.0", ..... },

a19samke commented 3 years ago

The access editor or the defined constraint does not allow the 8.03, php version. To avoid this problem we need to fix the php requirement in our composer.json and update the composer.json as @a18danli mentioned.

a20chrjo commented 3 years ago

When using xampp 8.0.3, this error is thrown:

Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in C:\xampp\htdocs\LenaSYS\DuggaSys\accessedservice.php:330 Stack trace: #0 C:\xampp\htdocs\LenaSYS\DuggaSys\accessedservice.php(330): PDOStatement->bindParam(':cid', '2') #1 {main} thrown in C:\xampp\htdocs\LenaSYS\DuggaSys\accessedservice.php on line 330

This error is not thrown with xampp 7.3.27 and the query runs as it should.

Recommended way to solve this issue is to install xampp 8.0.3 (there is a portable version) and try and figure out why that code does not run.

image

@a19samke @a18danli