- Status Closed
- Percent Complete
- Task Type Bug Report
- Category Backend/Core
- Assigned To No-one
- Operating System Windows 10
- Severity Medium
- Priority Very Low
- Reported Version 1.0 devel (github master)
- Due in Version 1.0-rc11
-
Due Date
Undecided
- Votes
- Private
FS#2652 - Invalid argument supplied for foreach() in /var/www/html/includes/modify.inc.php
I have the last version rc10
When I try to update/delete a item from a list in “Categories” I have this message in the top of the page:
http://XXXXX/index.php?do=pm&area=cat&project=2
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/modify.inc.php on line 2215
When I try to update/delete a item from a list in “Versions” I have this message in the top of the page:
http://XXXX/index.php?do=pm&area=version&project=2
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/modify.inc.php on line 2119
http://XXXX/index.php?do=admin&area=cat
Warning: Invalid argument supplied for foreach() in /var/www/html/includes/modify.inc.php on line 2215
Closed by peterdd
14.04.2022 08:34
Reason for closing: Not a bug
Additional comments about closing:
14.04.2022 08:34
Reason for closing: Not a bug
Additional comments about closing:
as it is in unmaintained unofficial
docker version
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Could you please provide the PHP version, ADODB version, Database info?
How do you run it under Windows 10? Using wampp?
You can find the info easy in the admin checks area.
PHP version: 7.4.22
ADOdb version: 5.21.0
Swiftmailer version: Swift-5.4.12
HTMLPurifier version: 4.13.0
passwdcrypt: sha512
pgsql
Default character set: en_US.utf8
Default collation: en_US.utf8
The client is w10, the server is a docker from this repository:
https://github.com/blu-base/flyspray-docker
Everything works correctly only has problems with the lists
Is the Docker you use patching Flyspray’s version of datadict-postgres.inc.php into ADOdb 5.21.0 ?
Before ADOdb 5.21.0 Flyspray detected it on install and pointed the user to the required replacing/patching. As the detection not works anymore I added the patching to the composer.json itself, see
https://github.com/Flyspray/flyspray/blob/master/composer.json
Sorry, I only use "docker-compose up -d" and the magic started.
I replace datadict-postgress.inc.php
wget https://raw.githubusercontent.com/Flyspray/flyspray/master/setup/upgrade/1.0/datadict-postgres.inc.php
then
cp datadict-postgres.inc.php vendor/adodb/adodb-php/datadict/datadict-postgres.inc.php
but still not working :(
Ok.
Could you please add a screenshot of your
index.php?do=pm&area=cat&project=2
or
index.php?do=pm&area=version&project=2
to make it a bit easier to reproduce?
Those are the screenshoots
Are you really using 1.0-rc10 and not the dev version?
I was able to reproduce on github master version.
And I know why this warning appears as I changed something but not yet finished it, will be finished in the next rc11 release.
But not with the rc10 release.
I use the docker version https://github.com/blu-base/flyspray-docker
How can I change the master(rc11 dev) to rc10?
Thanx a lot!
@lucax please contact the author @bbase of this docker experiment https://github.com/blu-base/flyspray-docker
as I am not using docker.
The issue you had is only with the current dev version.
OK, Thaks for you support!
FlySpray is a Great Software, congratulations.
I just noticed this issue. I haven't noticed the notification mail…
Anyhow. Regarding the different releases.
There is a template for the Dockerfiles and build directories. It is used to derive discreet build directories, one for each release, and one for the master branch.
In the readme of the repository, I stated the commands to build the container for the master branch. In the section Just get started, instead of changing into the master/apache directory, use 1.0-r10/apache.
Since preparing the docker container was mainly an exercise, thinking initially this would be a useful contribution, I did not invested a lot of time to thoroughly test the container building. That's why I won't put the container into docker's registry - until maybe there is some real usage to be expected.
Correction: 1.0-rc10/apache