Page 1 of 3

Admin-Menü verschwunden

Posted: Sat Aug 26, 2023 7:06 pm
by pmschulze
Seit Jahren läuft unser System hervorragend mit CMSimple_XH. Seit dem letzten Update ist aber das Admin-Menü verschwunden. Im Kopf steht jetzt auch noch "onload=", also etwas aus dem Template.
Das Template basiert auf einer Idee von Ick - an unsere Bedürfnisse angepasst.

Da nichts geändert wurde, denke ich dass es vielleicht ein PHP-Fehler ist. Kann bitte jemand helfen?
Gruß aus Berlin
Auch ja, die Webseite: hans-grade-schule.de

Re: Admin-Menü verschwunden

Posted: Sun Aug 27, 2023 7:52 am
by lck
Ich kann das momentan nur am Handy ansehen.
Schalt mal den Debug-Modus ein. Da scheint es ein Problem mit jm_landingpage zu geben. Vermutlich ist das Plugin nicht installiert, aber der Pluginaufruf in der template.htm noch vorhanden.

Re: Admin-Menü verschwunden

Posted: Sun Aug 27, 2023 7:38 pm
by pmschulze
Nach der Installation kommt folgende Fehlermeldung:
WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:55
WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:63
XH-DEPRECATED: Function initvar() is deprecated
/mnt/web105/a1/40/510126840/htdocs/plugins/jm_landingpage/admin.php:15
WARNING: Undefined array key "jm_landingpage"
/mnt/web105/a1/40/510126840/htdocs/cmsimple/classes/PluginConfig.php:73

Re: Admin-Menü verschwunden

Posted: Mon Aug 28, 2023 7:32 am
by Tata
Try to modify the admin.php this way (comment/replace the deprecated functions)

Code: Select all

<?php

if (!defined('CMSIMPLE_XH_VERSION')) {
    header('HTTP/1.0 403 Forbidden');
    exit;
}

define('jm_landingpage', '1beta01');

/***
initvar('jm_landingpage');
if($jm_landingpage){
***/
if (XH_wantsPluginAdministration('jm_landingpage')) {
	$admin= isset($_POST['admin']) ? $_POST['admin'] : $admin = isset($_GET['admin']) ? $_GET['admin'] : '';
	$action= isset($_POST['action']) ? $_POST['action'] : $action = isset($_GET['action']) ? $_GET['action'] : '';
	$plugin=basename(dirname(__FILE__),"/");
	$o .= print_plugin_admin('off');
	if($admin<>'plugin_main'){
		$o .= plugin_admin_common($action,$admin,$plugin);
	}
	if ($admin == 'plugin_main') {
		$o .= plugin_admin_common($action, $admin, $plugin);
	}
	
	// First page when loading the plugin.
	if ($admin == '') 
	{
		$o.=tag('br').
		'<h4>CMSimple Plugin jm_landingpage XH</h4>' . 
		tag('hr').
		''  . tag('hr') . 
		 
		'<h4>Please leave the link in the backend</h4>' . 
		'<p>Powered by <a href="http://jmnet.dk">JmNet.dk</a></p>'  .tag('hr').
		'<p>Version:   1beta01'.tag('br').
		'Released:   6. january 2015'.tag('br').
		'<b>License:</b>   Freeware'.tag('br').
		'Made by:	Maeg - <a href="http://jmnet.dk">JmNet.dk</a> and <a href="http://cmsimple-xh.dk">CMSimple-xh.dk</a></p>'
		
		; 
		
	}
}

Re: Admin-Menü verschwunden

Posted: Mon Aug 28, 2023 9:26 am
by lck
Tata wrote:
Mon Aug 28, 2023 7:32 am
Try to modify the admin.php this way (comment/replace the deprecated functions)
Ja, das beseitigt diese DEPRECATED-Meldung, aber nicht das Problem mit dem Text "onlaod="".
@Peter: Ich kann dir eine bereits angepasste Version von jm_landingpage zukommen lassen.
pmschulze wrote:
Sat Aug 26, 2023 7:06 pm
Im Kopf steht jetzt auch noch "onload=", also etwas aus dem Template.
Dazu bräuchten wir mal die template.htm, da ist irgendwas falsch auskommentiert oder oder falsch platziert. Siehe auch dazu auch hier.

Re: Admin-Menü verschwunden

Posted: Mon Aug 28, 2023 7:29 pm
by Tata
pmschulze wrote:
Sat Aug 26, 2023 7:06 pm
Im Kopf steht jetzt auch noch "onload=", also etwas aus dem Template.
Wenn es im Template wirklich steht nur "onload=", dann ist es falsch. Es sollte eigentlich lauten

Code: Select all

<body<?=onload();?>>
oder

Code: Select all

<body<?php echo onload();?>>
evtl. noch z.B.

Code: Select all

<body<?php echo class="Klasse_für_Body" onload();?>>

Re: Admin-Menü verschwunden

Posted: Mon Aug 28, 2023 7:43 pm
by pmschulze
Das Onload ist verschwunden - Danke!

Re: Admin-Menü verschwunden

Posted: Mon Aug 28, 2023 7:50 pm
by pmschulze
Die Fehler aus fa bleiben
WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:55
WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:63

Re: Admin-Menü verschwunden

Posted: Tue Aug 29, 2023 7:14 am
by Tata
Welche Version von CMSimple_XH ist installiert und welche Version von fa Plugin? Versuch mal alles aktualisieren.

Re: Admin-Menü verschwunden

Posted: Tue Aug 29, 2023 6:08 pm
by pmschulze
Alles scheint aktuell:
CmSimple: CMSimple_XH 1.7.6 Released: 2023-07-11
Fa_XH 1.3 ist aktuell

Fehler: WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:55
WARNING: Trying to access array offset on value of type null
/mnt/web105/a1/40/510126840/htdocs/plugins/fa/classes/RequireCommand.php:63

Schalte ich den debug-Modus ab, dann läuft es - aber schön ist anders :(