Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.38 veröffentlicht (30.04.24)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
MyReactions
#11
vielleicht hat jemand eine Idee

unter PHP 8.1 bekomme ich beim Themenaufruf zahlreiche identische Warnings

Warning [2] Undefined array key "myreactions" - Line: 36 - File: inc/functions_post.php(946) : eval()'d code PHP 8.1.16 (Linux)

die inc/functions_post.php ist sicherlich nicht das Problem, da wird das postbit bzw. postbit_classic Template aufgerufen aber in dem ist der Eintrag vom Plugin
{$post['myreactions']}

im Plugin finde ich die Variable drei mal:
Zeile 484-487
PHP-Code:
    if($post_reactions)
    {
        eval(
"\$post['myreactions'] = \"".$templates->get('myreactions_container')."\";");
    } 

Zeile 576-579
PHP-Code:
        $db->insert_query('post_reactions', array('post_reaction_pid' => $post['pid'], 'post_reaction_rid' => $mybb->input['rid'], 'post_reaction_uid' => $mybb->user['uid'], 'post_reaction_date' => TIME_NOW));

        
myreactions_postbit($post);
        echo 
$post['myreactions'];
        exit; 

Zeile 587-594
PHP-Code:
if($post_reaction)
        {
            
$db->delete_query('post_reactions''post_reaction_id = \''.$post_reaction['post_reaction_id'].'\'');
            
$post get_post($post_reaction['post_reaction_pid']);
            
myreactions_postbit($post);
            echo 
$post['myreactions'];
            exit;
        } 

wie bekommt man diese Warnings weg?
Zitieren


Nachrichten in diesem Thema
MyReactions - von MyBB.de Bot - 02.10.2016, 06:45
RE: MyReactions - von MyBB.de Bot - 08.10.2016, 00:35
RE: MyReactions - von MyBB.de Bot - 30.01.2017, 00:45
RE: MyReactions - von Divinity - 14.04.2017, 04:39
RE: MyReactions - von doylecc - 14.04.2017, 09:14
RE: MyReactions - von Divinity - 14.04.2017, 12:51
RE: MyReactions - von Erkan - 14.04.2017, 14:08
RE: MyReactions - von bv64 - 23.04.2017, 18:20
RE: MyReactions - von bv64 - 25.04.2017, 23:04
RE: MyReactions - von BoomBoomPaco - 13.12.2019, 11:39
RE: MyReactions - von bv64 - 26.02.2023, 11:50
RE: MyReactions - von SvePu - 26.02.2023, 12:25
RE: MyReactions - von bv64 - 26.02.2023, 12:29
RE: MyReactions - von KarinB - 26.02.2023, 17:51
RE: MyReactions - von bv64 - 26.02.2023, 18:08
RE: MyReactions - von KarinB - 26.02.2023, 18:50
RE: MyReactions - von bv64 - 26.02.2023, 18:57
RE: MyReactions - von KarinB - 26.02.2023, 19:01
RE: MyReactions - von bv64 - 26.02.2023, 19:01
RE: MyReactions - von KarinB - 26.02.2023, 19:07
RE: MyReactions - von bv64 - 26.02.2023, 19:14
RE: MyReactions - von KarinB - 26.02.2023, 19:17
RE: MyReactions - von bv64 - 26.02.2023, 19:43
RE: MyReactions - von SvePu - 26.02.2023, 20:18
RE: MyReactions - von KarinB - 26.02.2023, 20:24
RE: MyReactions - von bv64 - 26.02.2023, 20:28
RE: MyReactions - von KarinB - 26.02.2023, 20:40
RE: MyReactions - von SvePu - 26.02.2023, 20:57
RE: MyReactions - von bv64 - 26.02.2023, 20:46
RE: MyReactions - von bv64 - 18.03.2023, 12:04
RE: MyReactions - von bv64 - 18.03.2023, 15:28
RE: MyReactions - von KarinB - 06.06.2023, 22:39
RE: MyReactions - von KarinB - 05.11.2023, 17:46
RE: MyReactions - von KarinB - 05.11.2023, 18:55
RE: MyReactions - von bv64 - 05.11.2023, 19:23
RE: MyReactions - von KarinB - 05.11.2023, 22:17
RE: MyReactions - von bv64 - 06.11.2023, 09:07
RE: MyReactions - von KarinB - 08.11.2023, 11:13
RE: MyReactions - von bv64 - 08.11.2023, 12:22
RE: MyReactions - von KarinB - 08.11.2023, 12:29
RE: MyReactions - von KarinB - 22.11.2023, 14:47
RE: MyReactions - von bv64 - 22.11.2023, 15:16
RE: MyReactions - von TheStoryteller - 30.03.2024, 17:17
RE: MyReactions - von KarinB - 15.07.2024, 13:05
RE: MyReactions - von Schnapsnase - 15.07.2024, 13:24
RE: MyReactions - von KarinB - 15.07.2024, 19:32
RE: MyReactions - von Schnapsnase - 15.07.2024, 19:43
RE: MyReactions - von KarinB - 15.07.2024, 19:53
RE: MyReactions - von Schnapsnase - 15.07.2024, 20:01
RE: MyReactions - von KarinB - 15.07.2024, 20:04
RE: MyReactions - von Schnapsnase - 15.07.2024, 20:30
RE: MyReactions - von KarinB - 15.07.2024, 20:41