Flyspray

  • Status Unconfirmed
  • Percent Complete
    0%
  • 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
Attached to Project: Flyspray
Opened by lucax - 27.08.2021
Last edited by peterdd - 31.08.2021

FS#2652 - Invalid argument supplied for foreach() in /var/www/html/includes/modify.inc.php

Docker27.08.2021peterdd

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
Project Manager

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.

lucax commented on 27.08.2021 17:13

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

Project Manager

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

cp setup/upgrade/1.0/datadict-postgres.inc.php vendor/adodb/adodb-php/datadict/datadict-postgres.inc.php
lucax commented on 27.08.2021 19:03

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 :(

Project Manager

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?

lucax commented on 27.08.2021 19:30

Those are the screenshoots

Project Manager

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.

lucax commented on 27.08.2021 23:01

I use the docker version https://github.com/blu-base/flyspray-docker

RUN set -ex; \
        curl -fsSL -o flyspray.tar.gz \
                "https://github.com/Flyspray/flyspray/archive/refs/heads/master.tar.gz"; \
  tar -xzf flyspray.tar.gz -C /usr/src; \
  rm flyspray.tar.gz; \
        mv /usr/src/flyspray-master /usr/src/flyspray; \
        cd /usr/src/flyspray; \
        curl -sS https://getcomposer.org/installer | php; \
        php composer.phar install --no-dev

How can I change the master(rc11 dev) to rc10?

Thanx a lot!

Project Manager

@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.

lucax commented on 01.09.2021 00:28

OK, Thaks for you support!

FlySpray is a Great Software, congratulations.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing