Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

PHP error on loading page 6 years 9 months ago #4964

  • edutech
  • edutech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
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[/]

Please Inloggen or Create an account to join the conversation.

Last edit: by edutech.

PHP error on loading page 6 years 9 months ago #4965

  • edutech
  • edutech's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
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 Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.044 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search