Undefined index?
Code (php)
1
2
3
4
5
6
2
3
4
5
6
Notice: Undefined property: dcscript_theme::$Smarty in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1820
Notice: Undefined variable: title in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1879
Notice: Undefined index: homepage in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1845
Notice: Undefined index: js in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1882
Notice: Undefined index: html_head in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1883
Notice: Undefined index: meta in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1884
Notice: Undefined variable: title in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1879
Notice: Undefined index: homepage in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1845
Notice: Undefined index: js in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1882
Notice: Undefined index: html_head in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1883
Notice: Undefined index: meta in /customers/4/a/d/jorandesign.nl/httpd.www/login/includes/main.inc.php on line 1884
Ik krijg een aantal foutmeldingen..
regel 1820 (met de //// ervoor):
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
class dcscript_theme extends Smarty
{
var $theme = null;
function dcscript_theme($theme = null)
{
global $dcs_settings;
//// $this->Smarty;
$this->theme = (is_null($theme) ? $dcs_settings['theme_name'] : $theme);
$this->activate_theme();
}
{
var $theme = null;
function dcscript_theme($theme = null)
{
global $dcs_settings;
//// $this->Smarty;
$this->theme = (is_null($theme) ? $dcs_settings['theme_name'] : $theme);
$this->activate_theme();
}
Regel 1845 (ook weer met //// ervoor):
Code (php)
1
2
3
4
2
3
4
if ($homepage)
{
//// $browser_title = str_replace('[site_name]', $dcs_settings['site_name'], $dcs_settings['homepage']['title']);
}
{
//// $browser_title = str_replace('[site_name]', $dcs_settings['site_name'], $dcs_settings['homepage']['title']);
}
en de rest:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function display_page($template, $page_info, $page_name = '')
{
global $dcs_settings;
global $msg;
$page_filename = substr($_SERVER['REQUEST_URI'], strlen($dcs_settings['site_path']));
if (preg_match('/^login.php/', $page_filename))
{
$page_filename = '';
}
$this->assign('msg', $msg);
regel 1879 $this->assign('browser_title', dcscript_theme::browser_title($title, $template == 'homepage.tpl'));
$this->assign('page_title', $page_info['title']);
$this->assign('html_css', $page_info['css']);
$this->assign('html_js', $page_info['js']);
$this->assign('html_head', $page_info['html_head']);
$this->assign('html_meta', dcscript_theme::create_meta($page_info['meta']));
$this->assign('template_name', ($page_name == '' ? $template : $page_name));
$this->assign('page_filename', urlencode($page_filename));
$this->assign('login_next_page', urlencode($_SERVER['REQUEST_URI']));
$this->display($template);
}
{
global $dcs_settings;
global $msg;
$page_filename = substr($_SERVER['REQUEST_URI'], strlen($dcs_settings['site_path']));
if (preg_match('/^login.php/', $page_filename))
{
$page_filename = '';
}
$this->assign('msg', $msg);
regel 1879 $this->assign('browser_title', dcscript_theme::browser_title($title, $template == 'homepage.tpl'));
$this->assign('page_title', $page_info['title']);
$this->assign('html_css', $page_info['css']);
$this->assign('html_js', $page_info['js']);
$this->assign('html_head', $page_info['html_head']);
$this->assign('html_meta', dcscript_theme::create_meta($page_info['meta']));
$this->assign('template_name', ($page_name == '' ? $template : $page_name));
$this->assign('page_filename', urlencode($page_filename));
$this->assign('login_next_page', urlencode($_SERVER['REQUEST_URI']));
$this->display($template);
}
heb al heel wat lopen prutsen nu, hoop dat iemand misschien het kleine foutje vind want ik wordt er onderhand een beetje gek van... Alvast bedankt!
Joran
Je moet nagaan waarom niet. Je krijgt deze melding ook al als je niet eerst checked of iets geset is of niet.
http://www.phphulp.nl/php/forum/topic/fout-in-gekocht-script/80912/last/?
Zo ja zou ik eens even mn geld terug gaan halen of er op staan dat ze het in orde maken
Zelfde script als Zo ja zou ik eens even mn geld terug gaan halen of er op staan dat ze het in orde maken
Wat Jacco zegt ben ik het helemaal mee eens. Als je iets koopt moet het werken.
ja dit is dus het gedeelte dat ik heb laten decoderen uit IonCube code. Maar inderdaad, heb al 3x een ticket ingevult op hun helpdesk maar die tickets verzenden niet, dus ze komen niet in hun database (lekkere support!!) dus ik kan nu ook vrij weinig :( Baal er wel van, dit was ook nog eens een duur script ook.
Daarbij lijkt mij dit een kwestie van error_reporting hoger zetten.
(error_reporting(~E_NOTICE); )
Gewijzigd op 04/11/2011 17:45:51 door Jacco Brandt