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
Parse error, syntax error nach cookielaw Plugin Installation
#1
Hallo,

ich hoffe, dass dieses Thema hier an der richtigen Stelle ist.

Wir haben versucht das cookielaw Plugin für Mybb zu installieren.
Es wurde alles soweit im FTP übertragen, als ich jedoch das Plugin aktiviert habe, kam folgende Fehlermeldung:

Zitat:Parse error: syntax error, unexpected ''] = "1";' (T_ENCAPSED_AND_WHITESPACE) in /users/requiem/www/inc/settings.php on line 404



Foren Software: Mybb 1.8.12
Leider wissen wir nicht, wie wir diesen Fehler beheben können und würden uns über Hilfestellung freuen.



Liebe Grüße
Rain


Zitieren
#2
Entschuldigt den doppelten Post, aber ich habe den Code gefunden, um den es geht und konnte leider nicht mehr editieren.

PHP-Code:
<?php
/*********************************\
  DO NOT EDIT THIS FILE, PLEASE USE
  THE SETTINGS EDITOR
\*********************************/

$settings['asoi_autoUpdate_time'] = "30";
$settings['asoi_autoChange_time'] = "0";
$settings['load'] = "0";
$settings['aj_away'] = "1";
$settings['aj_list'] = "1";
$settings['aj_headerdropdown'] = "1";
$settings['aj_postuser'] = "1";
$settings['aj_sortuser'] = "uname";
$settings['aj_shareuser'] = "1";
$settings['aj_postjump'] = "1";
$settings['mail_message_id'] = "1";
$settings['mail_parameters'] = "";
$settings['adminemail'] = "";
$settings['extraadmininfo'] = "1";
$settings['htmlposts_forums'] = "";
$settings['asoi_autoUpdate_enabled'] = "off";
$settings['asoi_autoChange_enabled'] = "off";
$settings['ingamescenes_use_accountswitcher'] = "0";
$settings['allowaimfield'] = "";
$settings['allowalignmycode'] = "1";
$settings['allowanonwarningpms'] = "1";
$settings['allowaway'] = "1";
$settings['allowbasicmycode'] = "1";
$settings['allowbuddyonly'] = "0";
$settings['allowcodemycode'] = "1";
$settings['allowcolormycode'] = "1";
$settings['allowcustomwarnings'] = "1";
$settings['alloweditreason'] = "0";
$settings['allowemailmycode'] = "1";
$settings['allowmultipleemails'] = "1";
$settings['allowfontmycode'] = "1";
$settings['allowgooglefield'] = "";
$settings['pmsallowhtml'] = "0";
$settings['sightml'] = "1";
$settings['allowicqfield'] = "";
$settings['allowlinkmycode'] = "1";
$settings['allowlistmycode'] = "1";
$settings['allowmemycode'] = "1";
$settings['multirep'] = "1";
$settings['pmsallowmycode'] = "1";
$settings['sigmycode'] = "1";
$settings['negrep'] = "1";
$settings['neurep'] = "1";
$settings['posrep'] = "1";
$settings['postrep'] = "1";
$settings['allowremoteavatars'] = "1";
$settings['allowsizemycode'] = "1";
$settings['allowskypefield'] = "";
$settings['pmsallowsmilies'] = "1";
$settings['sigsmilies'] = "0";
$settings['allowsymbolmycode'] = "1";
$settings['allowyahoofield'] = "";
$settings['pmsallowimgcode'] = "1";
$settings['sigimgcode'] = "1";
$settings['pmsallowvideocode'] = "1";
$settings['htmlposts_groups'] = "";
$settings['username_method'] = "0";
$settings['purgespammergroups'] = "4";
$settings['htmlposts_uids'] = "";
$settings['fastQuoteText'] = "Fast quote";
$settings['subscribeexcerpt'] = "100";
$settings['announcementlimit'] = "2";
$settings['inplaytracker_archiv'] = "999";
$settings['attachthumbh'] = "96";
$settings['attachthumbw'] = "96";
$settings['readparentforums'] = "0";
$settings['aj_changeauthor'] = "1";
$settings['avatarresizing'] = "disabled";
$settings['avataruploadpath'] = "./uploads/avatars";
$settings['awactialert'] = "0";
$settings['purgespammerbandelete'] = "ban";
$settings['purgespammerbanreason'] = "Spam";
$settings['purgespammerbangroup'] = "7";
$settings['aj_postcount'] = "1";
$settings['checklist_fields'] = "997, 998";
$settings['checklist_group'] = "996";
$settings['multiregister_usergroup'] = "5";
$settings['aj_sharestyle'] = "1";
$settings['online_today_gruppe'] = "";
$settings['stopforumspam_block_on_error'] = "0";
$settings['boardclosed'] = "0";
$settings['boardclosed_reason'] = "These forums are currently closed for maintenance. Please check back later.";
$settings['bbname'] = "";
$settings['bburl'] = "http://requiem.bplaced.net";
$settings['canviewownwarning'] = "1";
$settings['captchaimage'] = "1";
$settings['stopforumspam_check_emails'] = "1";
$settings['stopforumspam_on_contact'] = "0";
$settings['stopforumspam_on_newreply'] = "0";
$settings['stopforumspam_on_newthread'] = "0";
$settings['stopforumspam_check_ips'] = "1";
$settings['enablestopforumspam_on_register'] = "0";
$settings['stopforumspam_check_usernames'] = "0";
$settings['bbcodeinserter'] = "1";
$settings['partialmode'] = "0";
$settings['smilieinserter'] = "1";
$settings['contactemail'] = "";
$settings['faxno'] = "";
$settings['contactlink'] = "contact.php";
$settings['cplanguage'] = "deutsch_sie";
$settings['cpstyle'] = "";
$settings['cookiedomain'] = ".requiem.bplaced.net";
$settings['cookiepath'] = "/";
$settings['cookieprefix'] = "";
$settings['coppa'] = "disabled";
$settings['prunepostcountall'] = "0";
$settings['customtitlemaxlength'] = "40";
$settings['wolcutoffmins'] = "15";
$settings['dateformat'] = "d.m.Y";
$settings['datetimesep'] = ", ";
$settings['dstcorrection'] = "1";
$settings['dayspruneregistered'] = "90";
$settings['dayspruneunactivated'] = "90";
$settings['decpoint'] = ",";
$settings['useravatardims'] = "230|230";
$settings['bblanguage'] = "deutsch_sie";
$settings['default_memberlist_sortby'] = "regdate";
$settings['default_memberlist_order'] = "ascending";
$settings['timezoneoffset'] = "+1";
$settings['useravatar'] = "images/default_avatar.png";
$settings['delayedthreadviews'] = "0";
$settings['no_plugins'] = "0";
$settings['contact_guests'] = "0";
$settings['disableregs'] = "0";
$settings['hiddencaptchaimage'] = "0";
$settings['fa_list'] = "0";
$settings['cookielaw_method'] = "notify";
$settings['failedlogintext'] = "1";
$settings['aj_emailcheck'] = "1";
$settings['enableattachments'] = "1";
$settings['enablecalendar'] = "0";
$settings['contact'] = "1";
$settings['enableforumjump'] = "1";
$settings['helpsearch'] = "1";
$settings['enablememberlist'] = "1";
$settings['portal'] = "0";
$settings['enablepms'] = "1";
$settings['enablereputation'] = "0";
$settings['seourls_archive'] = "0";
$settings['seourls'] = "auto";
$settings['soft_delete'] = "0";
$settings['statsenabled'] = "1";
$settings['enablepruning'] = "0";
$settings['enablewarningsystem'] = "0";
$settings['contact_badwords'] = "1";
$settings['use_xmlhttprequest'] = "1";
$settings['onlinetoday_active'] = "1";
$settings['aj_groupperm'] = "-1";
$settings['errorloglocation'] = "./error.log";
$settings['errorlogmedium'] = "none";
$settings['errortypemedium'] = "both";
$settings['deleteinvites'] = "180";
$settings['colored_usernames_status'] = "1";
$settings['fastQuoteImageStyle'] = "background-position: 0 -100px;
padding-left:16px;
text-indent: -9999px;"
;
$settings['forcelogin'] = "0";
$settings['portal_excludediscussion'] = "";
$settings['portal_announcementsfid'] = "-1";
$settings['modlist'] = "0";
$settings['redirects'] = "1";
$settings['checklist_birthday'] = "1";
$settings['useravatarrating'] = "g";
$settings['gziplevel'] = "4";
$settings['searchhardlimit'] = "0";
$settings['aj_sortgroup'] = "0";
$settings['hiddencaptchaimagefield'] = "email3";
$settings['hideprivateforums'] = "1";
$settings['hidesignatures'] = "";
$settings['hidewebsite'] = "";
$settings['homename'] = "Your Website";
$settings['homeurl'] = "http://requiem.bplaced.net/";
$settings['inplay_id'] = "63";
$settings['aj_profilefield_id'] = "0";
$settings['asoi_index_limit'] = "5";
$settings['inplaytracker_forum'] = "11";
$settings['fa_enabled'] = "1";
$settings['siglength'] = "10000";
$settings['stopforumspam_log_blocks'] = "0";
$settings['loginattemptstimeout'] = "15";
$settings['mail_handler'] = "mail";
$settings['mail_logging'] = "2";
$settings['mailingaddress'] = "";
$settings['aj_secstyle'] = "0";
$settings['asoi_type'] = "hover";
$settings['maxloginattempts'] = "5";
$settings['avatarsize'] = "200";
$settings['maxattachments'] = "5";
$settings['maxavatardims'] = "230x230";
$settings['postmaxavatarsize'] = "230x230";
$settings['memberlistmaxavatarsize'] = "230x230";
$settings['maxpostimages'] = "10";
$settings['maxmessagelength'] = "65535";
$settings['contact_maxmessagelength'] = "65535";
$settings['maxquotedepth'] = "5";
$settings['maxsigimages'] = "2";
$settings['maxpolloptions'] = "10";
$settings['maxmultipagelinks'] = "5";
$settings['maxpasswordlength'] = "30";
$settings['maxpmquotedepth'] = "5";
$settings['polloptionlimit'] = "250";
$settings['maxregsbetweentime'] = "2";
$settings['maxreplength'] = "300";
$settings['contact_maxsubjectlength'] = "85";
$settings['maxnamelength'] = "30";
$settings['maxpostvideos'] = "1";
$settings['maxwarningpoints'] = "10";
$settings['membersperpage'] = "20";
$settings['postmergefignore'] = "-1";
$settings['postmergesep'] = "
[hr]
"
;
$settings['postmergeuignore'] = "-1";
$settings['minifycss'] = "0";
$settings['minmessagelength'] = "1";
$settings['contact_minmessagelength'] = "5";
$settings['minpasswordlength'] = "6";
$settings['regtime'] = "15";
$settings['minreplength'] = "10";
$settings['minsearchword'] = "0";
$settings['stopforumspam_min_weighting_before_spam'] = "50.00";
$settings['minnamelength'] = "3";
$settings['multiregister_as'] = "1";
$settings['online_today_avatar'] = "0";
$settings['aj_myalerts'] = "0";
$settings['mycodemessagelength'] = "1";
$settings['sigcountmycode'] = "1";
$settings['aj_regmailattach'] = "1";
$settings['aj_reload'] = "1";
$settings['smilieinsertercols'] = "4";
$settings['smilieinsertertot'] = "20";
$settings['portal_numannouncements'] = "10";
$settings['failedcaptchalogincount'] = "3";
$settings['portal_showdiscussionsnum'] = "10";
$settings['advancedpmnotice_count'] = "3";
$settings['failedlogincount'] = "10";
$settings['user_tagging_on'] = "1";
$settings['online_today_zeit'] = "1";
$settings['grouplegend_only_team'] = "0";
$settings['showbirthdayspostlimit'] = "0";
$settings['grouplegend_only_groups'] = "-1";
$settings['tplhtmlcomments'] = "1";
$settings['guestimages'] = "1";
$settings['guestvideos'] = "1";
$settings['cdnpath'] = "";
$settings['asoi_place'] = "bothbottom";
$settings['online_today_status'] = "1";
$settings['grouplegend_enabled'] = "1";
$settings['user_tagging_body'] = "I tagged you here: {thread}";
$settings['user_tagging_subject'] = "I tagged you!";
$settings['aj_pmnotice'] = "1";
$settings['aj_authorpm'] = "0";
$settings['polltimelimit'] = "12";
$settings['asoi_portal_limit'] = "5";
$settings['prunepostcount'] = "0";
$settings['postfloodcheck'] = "0";
$settings['postfloodsecs'] = "60";
$settings['postlayout'] = "classic";
$settings['purgespammerpostlimit'] = "1";
$settings['postmergemins'] = "60";
$settings['postsperpage'] = "20";
$settings['pmfloodsecs'] = "60";
$settings['aj_profilefield'] = "0";
$settings['pruneunactived'] = "0";
$settings['enableprunebyposts'] = "0";
$settings['prunethreads'] = "0";
$settings['fastQuoteFieldName'] = "message";
$settings['fastQuoteFormName'] = "quick_reply_form";
$settings['threadreadcut'] = "7";
$settings['captchaprivatekey'] = "";
$settings['captchapublickey'] = "";
$settings['refreshwol'] = "1";
$settings['regdateformat'] = "M Y";
$settings['regtype'] = "instant";
$settings['hottopic'] = "20";
$settings['reportmethod'] = "db";
$settings['repsperpage'] = "15";
$settings['requirecomplexpasswords'] = "0";
$settings['returnemail'] = "";
$settings['ingamescenes_show_headerarchivebutton'] = "1";
$settings['fid_ingamescenesarchive'] = "55";
$settings['ingamescenes_show_headerbutton'] = "1";
$settings['fid_ingamescenes'] = "63";
$settings['ip_forwarded_check'] = "0";
$settings['searchfloodtime'] = "30";
$settings['searchtype'] = "standard";
$settings['cookiesecureflag'] = "0";
$settings['nocacheheaders'] = "0";
$settings['onlinetoday_orderby'] = "2";
$settings['onlinetoday_orderby'] = "2";
$settings['onlinetoday_orderby'] = "2";
$settings['onlinetoday_orderby'] = "2";
$settings['showeditedbyadmin'] = "0";
$settings['showeditedby'] = "0";
$settings['showsimilarthreads'] = "0";
$settings['attachthumbnails'] = "yes";
$settings['onlinetoday_avatars'] = "1";
$settings['onlinetoday_avatars'] = "1";
$settings['onlinetoday_avatars'] = "1";
$settings['onlinetoday_avatars'] = "1";
$settings['onlinetoday_formatname'] = "1";
$settings['onlinetoday_formatname'] = "1";
$settings['onlinetoday_formatname'] = "1";
$settings['onlinetoday_formatname'] = "1";
$settings['showdescriptions'] = "1";
$settings['showforumpagesbreadcrumb'] = "1";
$settings['portal_showstats'] = "1";
$settings['ficons_visible'] = "1";
$settings['jumptopagemultipage'] = "1";
$settings['showlanguageselect'] = "1";
$settings['portal_showdiscussions'] = "1";
$settings['multiquote'] = "1";
$settings['logip'] = "hide";
$settings['showpmip'] = "hide";
$settings['quickreply'] = "0";
$settings['pmquickreply'] = "1";
$settings['portal_showsearch'] = "1";
$settings['securityquestion'] = "1";
$settings['showindexstats'] = "0";
$settings['subforumsstatusicons'] = "1";
$settings['portal_showpms'] = "1";
$settings['portal_showwelcome'] = "1";
$settings['showthemeselect'] = "0";
$settings['threadreview'] = "1";
$settings['showbirthdays'] = "0";
$settings['statstopreferrer'] = "0";
$settings['showvernum'] = "0";
$settings['portal_showwol'] = "1";
$settings['showwol'] = "1";
$settings['showforumviewing'] = "0";
$settings['similarlimit'] = "10";
$settings['similarityrating'] = "1";
$settings['secure_smtp'] = "0";
$settings['smtp_host'] = "";
$settings['smtp_pass'] = "";
$settings['smtp_port'] = "";
$settings['smtp_user'] = "";
$settings['grouplegend_sort_groups'] = "gid";
$settings['statscachetime'] = "0";
$settings['statslimit'] = "15";
$settings['checklist_application'] = "1";
$settings['purgespammerapikey'] = "";
$settings['subforumsindex'] = "5";
$settings['aj_admin_changeauthor'] = "1";
$settings['aj_admin_changegroup'] = "admin";
$settings['aj_tpledit'] = "1";
$settings['ingamescenes_use_threaddescriptions'] = "1";
$settings['thousandssep'] = ".";
$settings['threadsperpage'] = "20";
$settings['failedlogintime'] = "15";
$settings['betweenregstime'] = "0";
$settings['timeformat'] = "H:i";
$settings['onlinetoday_time'] = "1";
$settings['onlinetoday_time'] = "1";
$settings['onlinetoday_time'] = "1";
$settings['onlinetoday_time'] = "1";
$settings['grouplegend_tooltip_style'] = "backgroundColor:'#161616',border:'1px dashed #333',borderRadius:'5px',color:'#fff',padding: '5px'";
$settings['fastQuoteStatus'] = "1";
$settings['checklist_forum'] = "999";
$settings['uploadspath'] = "./uploads";
$settings['cdnurl'] = "";
$settings['dotfolders'] = "1";
$settings['usecdn'] = "0";
$settings['useerrorhandling'] = "1";
$settings['gzipoutput'] = "0";
$settings['usereferrals'] = "1";
$settings['allowthreadratings'] = "0";
$settings['threadusenetstyle'] = "0";
$settings['userpppoptions'] = "";
$settings['usertppoptions'] = "10,15,20,25,30,40,50";
$settings['grouplegend_element_style'] = "{usergroup}|";
$settings['browsingthisforum'] = "1";
$settings['browsingthisthread'] = "0";
$settings['emailkeep'] = "0";
$settings['onlinetoday_items_all'] = "50";
$settings['onlinetoday_items_index'] = "18";
$settings['aj_profile'] = "1";
$settings['aj_memberlist'] = "1";
$settings['aj_sidebar'] = "1";
$settings['aj_privacy'] = "0";
$settings['hottopicviews'] = "150";
$settings['fa_mode'] = "0";
$settings['wolorder'] = "username";
$settings['asoi_show_tod'] = "none";
$settings['asoi_show_rep'] = "none";
$settings['asoi_show_mvt'] = "none";
$settings['asoi_show_mrt'] = "none";
$settings['asoi_show_mdl'] = "none";
$settings['asoi_show_evt'] = "none";
$settings['asoi_show_nrp'] = "none";
$settings['asoi_show_nmb'] = "index";
$settings['asoi_show_nth'] = "none";
$settings['asoi_show_nep'] = "none";
$settings['asoi_show_tof'] = "none";
$settings['asoi_show_top'] = "none";
$settings['ingamescenes_show_ingamescenesonindex'] = "1";
$settings['ingamescenes_show_scenesinprofile'] = "1";
$settings['ingamescenes_show_oldscenesinprofile'] = "1";

[
'escenes_show_oldscenesinprofile'] = "1"

Ich habe den ganz unteren Code schon von  escenes_show_oldscenesinprofile'] = "1"; zu ['escenes_show_oldscenesinprofile'] = "1"; geändert.

Nun kommt folgende Fehlermeldung:
Parse error: syntax error, unexpected '=' in /users/requiem/www/inc/settings.php on line 404

Muss ich davor nun noch $settings setzen? Denn dieses '=' ist doch eigentlich richtig oder sehe ich das falsch?
Zitieren
#3
Am einfachsten löschst du die settings.php, diese wird beim nächsten Aufruf des Forums automatisch neu generiert.

PS: Du solltest ein Update auf die aktuelle MyBB-Version in Betracht ziehen.
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#4
Vielen Dank für die Antwort. (:
Mit dem $settings davor hat es zum Glück wieder funktioniert.
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Parse error: syntax error, unexpected '' FlederMaus 4 1.932 01.09.2023, 00:28
Letzter Beitrag: FlederMaus
  Sticky PHP Parse Error ghandix 0 723 04.12.2021, 23:11
Letzter Beitrag: ghandix
  'Parse error' bei Moderatoren-Log miglincit 1 1.442 12.11.2018, 13:16
Letzter Beitrag: StefanT
  Parse error wenn Profil aufgerufen wird KidCoco 10 3.476 17.09.2017, 18:14
Letzter Beitrag: MrBrechreiz
  T_STRING Syntax error? lytcraft 1 1.509 16.02.2017, 13:26
Letzter Beitrag: doylecc