error editing an item

Problems with the Linux version of XAMPP, questions, comments, and anything related.

error editing an item

Postby doctorsubtilis » 24. May 2022 03:33

I get tghis error message when I try to edit an item in phpmyadimin

Code: Select all
Warning in ./libraries/classes/InsertEdit.php#1765
 implode(): Invalid arguments passed

Backtrace

InsertEdit.php#1765: implode(
string ',',
string 'pro_doct',
)
ReplaceController.php#312: PhpMyAdmin\InsertEdit->getCurrentValueForDifferentTypes(
boolean false,
string '2ab6240bef8140b28277f912b86342bf',
array,
string '\'\'',
array,
integer 0,
array,
array,
array,
boolean false,
boolean true,
string '`bibliografie`.`ID` = 2',
string 'bibliografie',
array,
)
Routing.php#192: PhpMyAdmin\Controllers\Table\ReplaceController->__invoke(
,
array,
)
index.php#43: PhpMyAdmin\Routing::callControllerForRoute(
,
string '/table/replace',
,
,
)


Another error: I cannot copy a table from a database to another (only export/import). No error messages.

Server: Localhost via UNIX socket
Tipo di server: MariaDB
Connessione Server: SSL inattivo Documentazione
Versione del server: 10.4.17-MariaDB - Source distribution
Versione protocollo: 10
Utente: root@localhost
Codifica caratteri del server: cp1252 West European (latin1)
Web server
Apache/2.4.46 (Unix) OpenSSL/1.1.1i PHP/7.4.14 mod_perl/2.0.11 Perl/v5.32.0
Versione del client del database: libmysql - mysqlnd 7.4.14
Estensione PHP: mysqli Documentazione curl Documentazione mbstring Documentazione
Versione PHP: 7.4.14

What should I do? Upgrade xampp could help?
doctorsubtilis
 
Posts: 9
Joined: 11. September 2020 15:44
XAMPP version: 7.4.9.0
Operating System: Linux - KDE Neon 20.04

Re: error editing an item

Postby doctorsubtilis » 25. May 2022 14:55

No answer? I would know if that errors are a symptom of curruption of my data, or if there is some problem on the apps: but where? In mysql? In php? In javascript?
Thank you!
doctorsubtilis
 
Posts: 9
Joined: 11. September 2020 15:44
XAMPP version: 7.4.9.0
Operating System: Linux - KDE Neon 20.04

Re: error editing an item

Postby Altrea » 25. May 2022 19:55

Crossposting: https://serverfault.com/questions/1101667/error-editing-an-item-impossible-editing

Crossposting / Multiposting is a problem because a community may invest time analyzing or solving your issue which has already done by another community. Nobody gets information about what has already been done or asked to help you out.

We don't close Crosspostings if all communities have the chance to get all information. Means: at serverfault you need to link to this thread here, and your thread here needs a link to your serverfault post (which i have already done for you). And if you ask your question to a third community, you need to inform all communities. But please read the community rules first, some communities may have forbidden crosspostings completely.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: error editing an item

Postby doctorsubtilis » 27. May 2022 04:50

ok, thank you.

In serverfault I asked to delete my thread.
doctorsubtilis
 
Posts: 9
Joined: 11. September 2020 15:44
XAMPP version: 7.4.9.0
Operating System: Linux - KDE Neon 20.04

Re: error editing an item

Postby Altrea » 27. May 2022 10:09

This seems to be a bug in phpmyadmin.
phpmyadmin tries to use the php implode function. The second parameter is a string but needs to be an array.
I don't know how this can happen in only some cases. Maybe the data it tries to process (your database data) has something to do with it.

I cannot find if this issue is already reported or not. Maybe it is already solved and will not occure in newer phpmyadmin versions.
So maybe a phpmyadmin update can solve this issue. But i'm not sure.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: error editing an item

Postby Nobbie » 27. May 2022 16:44

Which release of phpmyadmin? I have phpmyadmin 5.1.3 installed (as part of Xampp Linux 8.1.4) and edit the file InsertEdit.php, there is no implode() near to line 1765. Maybe you should update at least phpmyadmin (if you only update phpmyadmin, there is no need for data backups, as this only affects phpmyadmin, not mysql / mariadb).
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 52 guests