Report any technical problems you discover and discuss solutions.

PHP error on loading page

Plus d'informations
il y a 8 ans 5 mois - il y a 8 ans 5 mois #4964 par edutech
PHP error on loading page a été créé par edutech
Hi all , great job on xerte,

I receive the error below when I got to the xerte page, if access is set to guest the warning is hidden behind the GUI, any ideas?

[]Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /webusers/myusername/public_html/Mysite/plugins.php on line 46[/]
[]Warning: Invalid argument supplied for foreach() in /webusers/myusername/public_html/Mysite/plugins.php on line 48[/]
Dernière édition: il y a 8 ans 5 mois par edutech.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 ans 5 mois #4965 par edutech
Réponse de edutech sur le sujet PHP error on loading page
answered my own question, for anyone else here is the solution, please not the '+' and '-', these need removing so the code you need to overlay the previous is
* Only looks in PLUGINS_PATH and one dir underneath.
* Only loads files ending in .php
*/
$files1 = glob(PLUGINS_PATH . D_S . '*' . D_S . '*.php');
if ($files1 === false) $files1 = array();
$files2 = glob(PLUGINS_PATH . D_S . '*.php');
if ($files2 === false) $files2 = array();
$files = array_merge($files1, $files2);

xerte.org.uk/index.php?option=com_kunena...5&Itemid=759&lang=es

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.127 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo