Report any technical problems you discover and discuss solutions.

PHP error on loading page

  • edutech
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
8 jaren 5 maanden geleden - 8 jaren 5 maanden geleden #4964 door edutech
PHP error on loading page werd gestart door 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[/]
Laatst bewerkt 8 jaren 5 maanden geleden door edutech.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • edutech
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
8 jaren 5 maanden geleden #4965 door edutech
Beantwoord door edutech in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.136 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo