MyBB.de Forum
[geteilt] Automatische Leerzeilen nach Post-Edit - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Diskussionen (https://www.mybb.de/forum/forum-38.html)
+--- Thema: [geteilt] Automatische Leerzeilen nach Post-Edit (/thread-36645.html)



[geteilt] Automatische Leerzeilen nach Post-Edit - Nighthawk - 20.07.2019

Inlinebearbeitung funktioniert bei mir gar nicht. Wenn ich es versuche, erscheint in dem Inlinefeld folgender Text:
Code:
<br />
<b>Fatal error</b>:  Call to undefined function verify_check_login() in <b>/users/bla/www/forum/inc/class_plugins.php</b> on line <b>142</b><br />

Wenn ich die Datei class_plugins.php öffne, steht bei Zeile 142 folgendes:
PHP-Code:
$return_args $func($arguments); 

Hier der gesamte Code:
PHP-Code:
/**
     * Run the hooks that have plugins.
     *
     * @param string $hook      The name of the hook that is run.
     * @param mixed $arguments The argument for the hook that is run. The passed value MUST be a variable
     * @return mixed The arguments for the hook.
     */
    
function run_hooks($hook, &$arguments="")
    {
        if(!isset(
$this->hooks[$hook]) || !is_array($this->hooks[$hook]))
        {
            return 
$arguments;
        }
        
$this->current_hook $hook;
        
ksort($this->hooks[$hook]);
        foreach(
$this->hooks[$hook] as $priority => $hooks)
        {
            if(
is_array($hooks))
            {
                foreach(
$hooks as $key => $hook)
                {
                    if(
$hook['file'])
                    {
                        require_once 
$hook['file'];
                    }

                    if(
array_key_exists('class_method'$hook))
                    {
                        
$return_args call_user_func_array($hook['class_method'], array(&$arguments));
                    }
                    else
                    {
                        
$func $hook['function'];

                        
$return_args $func($arguments);
                    }

                    if(
$return_args)
                    {
                        
$arguments $return_args;
                    }
                }
            }
        }
        
$this->current_hook '';

        return 
$arguments;
    } 

Was ist daran denn falsch? oder was bedeutet der o.g. Fehler? Ich kann damit nichts anfangen. Habe auch gegooglet aber nichts dazu finden können.


RE: [geteilt] Automatische Leerzeilen nach Post-Edit - StefanT - 22.07.2019

Hast du eine Ahnung, welches Plugin für den Fehler verantwortlich ist? Aus der Fehlermeldung kann man das leider nicht ableiten.


RE: [geteilt] Automatische Leerzeilen nach Post-Edit - Nighthawk - 22.07.2019

(22.07.2019, 09:14)StefanT schrieb: Hast du eine Ahnung, welches Plugin für den Fehler verantwortlich ist? Aus der Fehlermeldung kann man das leider nicht ableiten.
Noch nicht. Ich werde nachher mal jedes Plugin nach und nach deaktivieren und testen, evtl. lässt sich das betreffende Plugin dann ausfindig machen, welches den Fehler verursacht.