The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.18 (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
init.php is messed up?
#1
I installed userspice and got it all integrated to my site. But then I bought a new domain name and now my site doesn't load past core/init.php which looks like this:


Quote:<?php
session_start();

function env($type='server'){
if($type == 'server'){
if($_SERVER['HTTP_HOST'] == 'localhost'){
return $_SERVER['DOCUMENT_ROOT'].


I don't know much php, but that looks incomplete. What is init.php supposed to look like? How can I fix this.
  Reply
#2
That's definitely not complete. What version of UserSpice are you using? If it's 4.0 there is an "if install fails" file that has the full init.php in it and you'd just have to replace the settings in there with yours. If it's 4.1 alpha we haven't made that one yet, but I we can still help you out.
  Reply
#3
Ya, I'm using 4.0. I found the "if install fails" init.php file. I'll use that (with my settings of course). Thanks
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)