The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Can someone help me with the path - 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: Can someone help me with the path (/showthread.php?tid=649)



Can someone help me with the path - fred27 - 07-24-2017

Hello to everyone, I have a problem with the path, i have been looking around the forum but i can't find a solution.
can someone point in the right direction this is the problem.

Fatal error: require_once(): Failed opening required '/var/www/html/users/helpers/helpers.php' (include_path='.:') in /membri/uboat/users/init.php on line 22


Can someone help me with the path - mudmin - 07-25-2017

Are your quotes curly or straight? Can you paste your lines 21,22, and 23 of init.php?



Can someone help me with the path - fred27 - 07-25-2017

<?php
session_start();

$abs_us_root=$_SERVER['DOCUMENT_ROOT'];

$self_path=explode("/", $_SERVER['PHP_SELF']);
$self_path_length=count($self_path);
$file_found=FALSE;

for($i = 1; $i < $self_path_length; $i++){
array_splice($self_path, $self_path_length-$i, $i);
$us_url_root=implode("/",$self_path)."/";

if (file_exists($abs_us_root.$us_url_root.'z_us_root.php')){
$file_found=TRUE;
break;
}else{
$file_found=FALSE;
}
}

require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php';

// Set config
$GLOBALS['config'] = array(
'mysql' => array('host' => 'localhost',
'username' => 'Userspice',
'password' => 'Userspice',
'db' => 'userspice',
),
'remember' => array(
'cookie_name' => '',
'cookie_expiry' => 604800 //One week, feel free to make it longer
),
'session' => array(
'session_name' => 'user',
'token_name' => 'token',
)
);


Can someone help me with the path - karsen - 07-29-2017

It looks like mudmin is on the right track. Find and replace all your single and double curly quotes with straight ones and test it out. If you still have problems paste the new error and we'll test from there.

Swap:
Code:
‘ and ’
with
Code:
'
Code:
“ and ”
with
Code:
"



Can someone help me with the path - firestorm - 07-30-2017

i get a feeling ini.php has been copy & pasted from somewhere hence the quotes a little screwed up, cookie name appears also to be missing along with a quote