Admin-Menü verschwunden
Moderator: mikey
Admin-Menü verschwunden
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
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
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.
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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: Admin-Menü verschwunden
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
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
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>'
;
}
}
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Admin-Menü verschwunden
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.
Dazu bräuchten wir mal die template.htm, da ist irgendwas falsch auskommentiert oder oder falsch platziert. Siehe auch dazu auch hier.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“ Ludwig's XH-Templates for MultiPage & OnePage
Re: Admin-Menü verschwunden
Wenn es im Template wirklich steht nur "onload=", dann ist es falsch. Es sollte eigentlich lauten
Code: Select all
<body<?=onload();?>>
Code: Select all
<body<?php echo onload();?>>
Code: Select all
<body<?php echo class="Klasse_für_Body" onload();?>>
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Admin-Menü verschwunden
Das Onload ist verschwunden - Danke!
Re: Admin-Menü verschwunden
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
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
Welche Version von CMSimple_XH ist installiert und welche Version von fa Plugin? Versuch mal alles aktualisieren.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: Admin-Menü verschwunden
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
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