installing not possible mysqli error

Bug #2002700 reported by lpdavinci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Undecided
Gold

Bug Description

OS Informations:

Apache2
PHP8.1
MariaDB 10.5.18
OS: Raspbian (Debian 11)
I attached a picture with all infos i got so far.

Bug:
When i try to install the newest Mahara build 22.10.0 (2022090903)
i cannot install it. In the webbrowser i get a failed to upgrade error.
The database gets created and filled with the config data.
But then i get the message, that the multirecipientnotifications is missing.
When i try to install it over the cli
i get a mysqli_stmt::bind_params() Argument #1 ($types) cannot be empty error caused by adodb-ymsqli.inc.php Line 1241
(directly after the Enabled 3 HTML filters part)

I tried php8.0 and now 8.1 same error build.
when i try to install mahara 22.4. i get the http 500 status code error.
I made the Dataroot /var/mahara and get the www-data group read/write and owner rights the same for the html documentroot of mahara.
i tried it on my google chrome (109.0.xxxx)

Revision history for this message
lpdavinci (lpdavinci) wrote :
Revision history for this message
Gold (gold.catalyst) wrote (last edit ):

I've been able to replicate this on Ubuntu as well. Updating to the latest ADODB didn't alter anything either.

This isn't looking to be an artefact of installing on Raspbian. Very cool that you're installing on a Pi too by the way. :)

Looking into the install script now. Just wanted to post a quick update.

Changed in mahara:
assignee: nobody → Gold (gold.catalyst)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review
Revision history for this message
Gold (gold.catalyst) wrote :

I've managed to resolve the issue I believe. It looks like upgrading adodb did do the trick. I may have just and an incomplete update or failed to get all the ducks in a row when testing.

However, I *can* now install into a fresh empty database.

@lpdavinci, the review above is currently running through tests as I type this, but if you are inclined you could fetch that patchset and give it a go. If you can also get past the install step that's a bonus.

I have a php 8 development environment where I can run behat with a php8 server as well. I'll set that running at the end of the day today. It takes about 3 hours to complete so running the full suite while working slows things down. This should give us a good idea on the upgrade vs the site in php8 mode.

Revision history for this message
lpdavinci (lpdavinci) wrote :

i tested the latest build von my end. and now its working with the patch set linked in this post on raspbian..

thanks alot for the fast response.

lpdavinci (lpdavinci)
Changed in mahara:
status: New → Confirmed
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

The final solution is slightly different than the original proposal. "We have now included adodb via composer in this patch https://reviews.mahara.org/c/mahara/+/13821 so it's already at version 5.22.4"

Changed in mahara:
status: Confirmed → Fix Committed
milestone: none → 23.04.0
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.