Sorry Olaf,
Noch eine Fehlmeldung beim Aufruf von News in Pragma2 Installation, wo Pragmamx 2.8.3 läuft.
bei Pragma Installation, wo Pragmamx 2.8.1 läuft, funktioniert es.
als normaler User wird die Seite nur weiß dargestellt. Als Admin siehst du die folgende Fehlermeldung:
mysql error (1305):
FUNCTION {dbname}.ANY_VALUE does not exist
query: SELECT s.id, s.title, s.text1, ANY_VALUE(s.leftID),
count(*)+(s.leftID >1) As level,
FLOOR((s.rightID-s.leftID)/2) as childs ,
((min(v.rightID)-s.rightID-(s.leftID >1))/2) > 0 AS lower,
(((s.leftID-max(v.leftID)>1))) AS upper ,
((min(v.leftID)>s.rightID)) AS upperid
from {prefix}_content as n,
{prefix}_content as v,
{prefix}_content as s
WHERE s.module_name='Documents'
AND v.module_name='Documents'
AND n.module_name='Documents'
AND n.id='1'
AND s.leftID >'1'
AND s.leftID BETWEEN v.leftID AND v.rightID
AND s.leftID BETWEEN n.leftID AND n.rightID
AND (v.id != s.id OR s.leftID = 1)
AND s.publish=1
GROUP BY s.leftID
ORDER by s.leftID
in includes/classes/Content.php on line 1465
PHP Run-time notice:
Trying to get property 'num_rows' of non-object
in includes/mx_db_mysqli.php on line 606
YAKCHAT
A error occured while processing this page.
Fatal error: Uncaught exception:
Call to a member function fetch_assoc() on boolean (code: 0)
in includes/mx_db_mysqli.php on line 560
hole dir mal dieses Patch, und sag Bescheid, obs geht
https://forum.pragmamx.org/index.php?msg=217947
Hi Olaf, danke zuerst für die die Lösung.
Jetzt wird zwar der Inhalt angezeigt aber in Debug erscheint folgende Meldung:
mysql error (1305):
FUNCTION {dbname}.ANY_VALUE does not exist
query: SELECT s.id, s.title, s.text1, ANY_VALUE(s.leftID),
count(*)+(s.leftID >1) As level,
FLOOR((s.rightID-s.leftID)/2) as childs ,
((min(v.rightID)-s.rightID-(s.leftID >1))/2) > 0 AS lower,
(((s.leftID-max(v.leftID)>1))) AS upper ,
((min(v.leftID)>s.rightID)) AS upperid
from {prefix}_content as n,
{prefix}_content as v,
{prefix}_content as s
WHERE s.module_name='Documents'
AND v.module_name='Documents'
AND n.module_name='Documents'
AND n.id='1'
AND s.leftID >'1'
AND s.leftID BETWEEN v.leftID AND v.rightID
AND s.leftID BETWEEN n.leftID AND n.rightID
AND (v.id != s.id OR s.leftID = 1)
AND s.publish=1
GROUP BY s.leftID
ORDER by s.leftID
in includes/classes/Content.php on line 1465
Normal Benutzer sieht diese Fehlermeldung nicht .
was hast du für eine MySQL-Version am laufen ?
Versuchsweise, und auch nur dafür(!!), ersetze in der Datei "includes/classes/content.php" in der Zeile 1444
$outputsql .="ANY_VALUE(s.leftID),";
durch
$outputsql .="s.leftID,";
Wichtig (!!) das Komma am Ende das Strings muss unbedingt stehen bleiben.
Gib mal Feedback bitte.
Im Moment ergeben sich einige Probleme auch durch die größeren Unstellungen, welche schon von MySQL 5.4 bis 5.7 erfolgen und natürlich gerade Richtung MySql 8.ff (und entprechende Derivate wie MariaDB etc.)
Hi OLaf,
nochmals danke für die effiziente Arbeit
Nach diese Änderung, sieht alles sauber aus.
herzlichen Dank für die Lösung. habe auch Verständnis für all diese Probleme mit PHP und MYSQL varianten, dazu kommen noch individuelle Server Einstellungen.