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
/printthread.php 16 require_once



UserSpice
init.php is messed up? - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: init.php is messed up? (/showthread.php?tid=132)



init.php is messed up? - strykerx - 05-13-2016

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.


init.php is messed up? - mudmin - 05-13-2016

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.


init.php is messed up? - strykerx - 05-13-2016

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