The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failure re-declaring config.php
#1
I'm testing out the latest UserSpice on an XAMPP install (v5.6.3) and get the following when I attempt to access a page having successfully logged on:

Code:
Fatal error: Cannot redeclare class Config in C:\xampp\php\pear\Config.php on line 44

This appears to be because UserSpice and XAMPP both use the Config.php function and despite the evidence from the videos (!) my install of XAMPP doesn't seem to want to play nicely... What's really confusing is that the UserSpice admin pages are fine and work normally.

I copied and pasted the lines suggested in the UserSpice index page into my own php file to place the page under user control. These lines are:
<pre>
Code:
require_once 'users/init.php';
require_once $abs_us_root.$us_url_root.'users/includes/header.php';
require_once $abs_us_root.$us_url_root.'users/includes/navigation.php';
if (!securePage($_SERVER['PHP_SELF'])){die();}
</pre>


Any ideas?
  Reply


Messages In This Thread
Failure re-declaring config.php - by grumpy-gnome - 11-23-2016, 11:59 PM
Failure re-declaring config.php - by grumpy-gnome - 11-24-2016, 09:08 AM
Failure re-declaring config.php - by grumpy-gnome - 11-24-2016, 09:40 AM
Failure re-declaring config.php - by mudmin - 11-24-2016, 03:31 PM
Failure re-declaring config.php - by mudmin - 11-24-2016, 03:36 PM
Failure re-declaring config.php - by mudmin - 11-24-2016, 03:59 PM
Failure re-declaring config.php - by grumpy-gnome - 11-25-2016, 04:03 PM
Failure re-declaring config.php - by mudmin - 11-25-2016, 04:06 PM

Forum Jump:


Users browsing this thread: 9 Guest(s)