Report any technical problems you discover and discuss solutions.

PHP error on loading page

  • edutech
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago - 8 years 5 months ago #4964 by edutech
PHP error on loading page was created by 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[/]
Last edit: 8 years 5 months ago by edutech.

Please Log in or Create an account to join the conversation.

  • edutech
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #4965 by edutech
Replied by edutech on 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

Please Log in or Create an account to join the conversation.

Moderators: ronmjultenJohnSmith
Time to create page: 0.314 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo