Ergebnis 1 bis 13 von 13
  1. #1
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    Media Wiki localhost.php Fehler

    Hey Leute, ich wollte Media Wiki installieren. Ich habe alles soweit gemacht, wie angegeben habe ich eine localhost.php bekommen und diese ins Stammverzeichnis von Media Wiki gelegt. Wenn ich nun weitermachen möchte kommt folgendes: Parse error: syntax error, unexpected '<' in /home/a1065330/public_html/mediawiki-1.18.0/LocalSettings.php on line 138

    Was mache ich falsch? :/

  2. Anzeige

    Media Wiki localhost.php Fehler

    Schau dir mal diesen Bereich an. Dort ist für jeden was dabei!
  3. #2
    Delicious? Delicious? ist offline
    Avatar von Delicious?

    AW: Media Wiki localhost.php Fehler

    Also wenn ich das so richtig erkenne und mich meine English Skillz nicht total verlassen haben, ist da ein < zuviel o:

  4. #3
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    Aber ich habe an der localhost.php ja ga nichts gemacht, die wird ja während der installation von selbst erstellt.

  5. #4
    HardAndSoft HardAndSoft ist offline
    Avatar von HardAndSoft

    AW: Media Wiki localhost.php Fehler

    Die Fehlermeldung besagt aber genau dieses. Und so lange Du die LocalSettings.php nicht postest, gibt es keinen Grund etwas anderes anzunehmen.

  6. #5
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    PHP-Code:
    <?php
    # This file was automatically generated by the MediaWiki 1.18.0
    # installer. If you make manual changes, please keep track in case you
    # need to recreate them later.
    #
    # See includes/DefaultSettings.php for all configurable settings
    # and their default values, but don't forget to make changes in _this_
    # file, not there.
    #
    # Further documentation for configuration settings may be found at:
    # Manual:Configuration settings - MediaWiki

    # Protect against web entry
    if ( !defined'MEDIAWIKI' ) ) {
        exit;
    }

    ## Uncomment this to disable output compression
    # $wgDisableOutputCompression = true;

    $wgSitename      "Wiki Test";
    $wgMetaNamespace "Wiki_Test";

    ## The URL base path to the directory containing the wiki;
    ## defaults for all runtime URL paths are based off of this.
    ## For more information on customizing the URLs please see:
    ## Manual:Short URL - MediaWiki
    $wgScriptPath       "/mediawiki-1.18.0";
    $wgScriptExtension  ".php";

    ## The protocol and server name to use in fully-qualified URLs
    $wgServer           "server";

    ## The relative URL path to the skins directory
    $wgStylePath        "$wgScriptPath/skins";

    ## The relative URL path to the logo.  Make sure you change this from the default,
    ## or else you'll overwrite your logo when you upgrade!
    $wgLogo             "$wgStylePath/common/images/wiki.png";

    ## UPO means: this is also a user preference option

    $wgEnableEmail      true;
    $wgEnableUserEmail  true# UPO

    $wgEmergencyContact "XXXXX";
    $wgPasswordSender   "XXXXXX";

    $wgEnotifUserTalk      false# UPO
    $wgEnotifWatchlist     false# UPO
    $wgEmailAuthentication true;

    ## Database settings
    $wgDBtype           "mysql";
    $wgDBserver         "server";
    $wgDBname           "DBname";
    $wgDBuser           "DBuser";
    $wgDBpassword       "XXXXX";

    # MySQL specific settings
    $wgDBprefix         "";

    # MySQL table options to use during installation or update
    $wgDBTableOptions   "ENGINE=MyISAM, DEFAULT CHARSET=binary";

    # Experimental charset support for MySQL 4.1/5.0.
    $wgDBmysql5 false;

    ## Shared memory settings
    $wgMainCacheType    CACHE_NONE;
    $wgMemCachedServers = array();

    ## To enable image uploads, make sure the 'images' directory
    ## is writable, then set this to true:
    $wgEnableUploads  true;
    #$wgUseImageMagick = true;
    #$wgImageMagickConvertCommand = "/usr/bin/convert";

    # InstantCommons allows wiki to use images from Wikimedia Commons
    $wgUseInstantCommons  true;

    ## If you use ImageMagick (or any other shell command) on a
    ## Linux server, this will need to be set to the name of an
    ## available UTF-8 locale
    $wgShellLocale "en_US.utf8";

    ## If you want to use image uploads under safe mode,
    ## create the directories images/archive, images/thumb and
    ## images/temp, and make them all writable. Then uncomment
    ## this, if it's not already uncommented:
    #$wgHashedUploadDirectory = false;

    ## Set $wgCacheDirectory to a writable directory on the web server
    ## to make your wiki go slightly faster. The directory should not
    ## be publically accessible from the web.
    #$wgCacheDirectory = "$IP/cache";

    # Site language code, should be one of the list in ./languages/Names.php
    $wgLanguageCode "de";

    $wgSecretKey "XXXXXX";

    # Site upgrade key. Must be set to a string (default provided) to turn on the
    # web installer while LocalSettings.php is in place
    $wgUpgradeKey "XXXXXX";

    ## Default skin: you can change the default skin. Use the internal symbolic
    ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
    $wgDefaultSkin "vector";

    ## For attaching licensing metadata to pages, and displaying an
    ## appropriate copyright notice / icon. GNU Free Documentation
    ## License and Creative Commons licenses are supported so far.
    $wgRightsPage ""# Set to the title of a wiki page that describes your license/copyright
    $wgRightsUrl  "http://creativecommons.org/licenses/by-nc-sa/3.0/";
    $wgRightsText "Creative Commons „Namensnennung, nicht kommerziell, Weitergabe unter gleichen Bedingungen“";
    $wgRightsIcon "{$wgStylePath}/common/images/cc-by-nc-sa.png";
    # $wgRightsCode = ""; # Not yet used

    # Path to the GNU diff3 utility. Used for conflict resolution.
    $wgDiff3 "";

    # Query string length limit for ResourceLoader. You should only set this if
    # your web server has a query string length limit (then set it to that limit),
    # or if you have suhosin.get.max_value_length set in php.ini (then set it to
    # that value)
    $wgResourceLoaderMaxQueryLength = -1;

    # The following permissions were set based on your choice in the installer
    $wgGroupPermissions['*']['createaccount'] = false;
    $wgGroupPermissions['*']['edit'] = false;


    # End of automatically generated settings.
    # Add more configuration options below.


    <!-- Free Web Hosting with PHPMySQL and cPanelNo Ads Analytics Code -->
    <
    script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
    <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
    <!-- End Of Analytics Code -->
    ?>

  7. #6
    Basti Basti ist offline

    AW: Media Wiki localhost.php Fehler

    Code:
    <!-- Free Web Hosting with PHP, MySQL and cPanel, No Ads Analytics Code -->
    <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
    <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
    <!-- End Of Analytics Code -->
    Das hat da nichts zu suchen. Lösch es.

  8. #7
    HardAndSoft HardAndSoft ist offline
    Avatar von HardAndSoft

    AW: Media Wiki localhost.php Fehler

    Habe mal aus Sicherheitsgründen ein paar Inhalte mit XXXXXX ersetzt.

  9. #8
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    Zitat Basti Beitrag anzeigen
    Code:
    <!-- Free Web Hosting with PHP, MySQL and cPanel, No Ads Analytics Code -->
    <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
    <noscript><a rel="nofollow" href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
    <!-- End Of Analytics Code -->
    Alles klar, funktioniert soweit. Dankesehr!

    Zitat HardAndSoft Beitrag anzeigen
    Habe mal aus Sicherheitsgründen ein paar Inhalte mit XXXXXX ersetzt.
    Vielen Dank, ich dachte ich hätte alles Wichtige unkenntlich gemacht. Hatte ich wohl etwas übersehen.

    Das hat da nichts zu suchen. Lösch es.

  10. #9
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    Ich nochmal..

    Habe versucht den TinyMCE Editor einzufügen nach dieser Anleitung: Extension:TinyMCE MW - MediaWiki und bekomme immer folgende Fehler

    Warning: Missing argument 1 for StripState::__construct(), called in /home/a1065330/public_html/mediawiki-1.18.0/extensions/TinyMCE_MW.php on line 250 and defined in /home/a1065330/public_html/mediawiki-1.18.0/includes/parser/StripState.php on line 14


    Fatal error: Call to undefined method Parser::strip() in /home/a1065330/public_html/mediawiki-1.18.0/extensions/TinyMCE_MW.php on line 252

    hier die TinyMCE_MW.php:

    Code:
    <?php
    /*
    TinyMCE_MW.php - MediaWiki extension - version 0.5.4
            by Joseph P. Socoloski III
            If you already have pages written in Mediawiki wikitext, this extension enables
            Moxiecode's TinyMCE and does not break Mediawiki wikitext. Also, TinyMCE_MW 
            has a new 'msword' configuration theme.  msword follows the MS Office 2003
            toolbar layout. Call TinyMCE's simple, advanced and a built-in msword theme from 
            LocalSettings.php.  TinyMCE_MW was built and tested on Mediawiki-1.10.0.  
            Successfully tested CategoryTree extension for compatibility with new tags.
    		-Improved custom tag parsing for repeat and categorytree; added sql2wiki
    
            References:     http://meta.wikimedia.org/wiki/Image:Wiki-refcard.png
                                    http://meta.wikimedia.org/wiki/Cheatsheet
                                    http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext
                                    http://wiki.moxiecode.com/index.php/TinyMCE:Index
                                    http://www.mediawiki.org/wiki/Extension:CategoryTree
                                    http://www.mediawiki.org/wiki/Manual:Parameters_to_index.php
                                    
            NOTE:To change the default font and size for TinyMCE, add these two lines to your
            theme's editor_content.css body{} section:
            font-family: Arial;
            font-size: 14px;
            NOTE:To decrease the space between lines after a carriage return place this line 
            to your theme's editor_content.css:
            p {margin: 0; padding: 0;}           
    BUGS:   - Does not support Wikitext Bullet list
                    - Does not support Wikitext Numbered list
                    - Does not support Wikitext Redirect to another article
                    - Does not support Wikitext Tables
    TODO:   - Enable Ajax usage
    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
    */
    
    
    if( !defined( 'MEDIAWIKI' ) ) {
      die();
    }
    
    $wgExtensionCredits['other'][] = array(
    
            "name" => "TinyMCE MW extension",
            "author" => "Joseph P. Socoloski III",
            "version" => "0.5.4",
            "url" => "http://www.mediawiki.org/wiki/Extension:TinyMCE_MW",
            "description" => "Easily implement Moxiecode's TinyMCE into MediaWiki"
     );
    
    # REGISTER HOOKS
    $wgHooks['ParserBeforeStrip'][]                 = 'wfTinymceParserCut';
    $wgHooks['ParserAfterTidy'][]                   = 'wfTinymceParserPaste';
    $wgHooks['ArticleAfterFetchContent'][] 			= 'wfCheckBeforeEdit';
    $wgHooks['EditPage::showEditForm:initial'][]    = 'wfTinymceAddScript';
    
    ##Process the raw wikidb code before any internal processing is applied
    function wfTinymceParserCut ($q, $text) {
    
            global $wgTitle;
            global $wgTempText, $wgUseTinymce;
            
            $ns_allowed = true;
            $ns = $wgTitle->getNamespace();
            
            #if (in_array($ns, $wgexcludedNamespaces)) $ns_allowed = false;
            $wgTempText = $text;#get text
            #$text = "";
            
            return true;
    }
    
    ##Process the wgTempText code (wikitext and html) and reformat it into html friendly $text
    function wfTinymceParserPaste ($q, $text) {
    
            global $wgOut, $wgTitle, $wgParser;
            global $wgTempText, $wgTinymceToken, $wgUseTinymce;
            
            $List = array();
            
            $ns_allowed = true;
            $ns = $wgTitle->getNamespace();
    
            // @Hack this enables the upload script and other special pages
    	if ($ns == -1) {
    		return true;
    	}
            
            # TinyMCE can NOT be enabled for any pages that have data tags
            if ($ns_allowed and $wgUseTinymce) {
            
                    $tinymcetext = $wgTempText; 
                    
                    ## EXTENSION TAGS | ADD HERE ##
    				#Custom tags may ONLY be entered in the regular editor NOT the HTML Source editor
    				#Allow_inputbox_tags
    				while (preg_match("|&lt;inputbox&gt;(.*?)&lt;/inputbox&gt;|is", $tinymcetext, $a)) {
    				 	$r = preg_replace("| |i", "", $a[0]);#erase all the whitespace
    				 	$r = preg_replace("|</p><p>|i", "<br/>", $a[0]);#sometimes </p><p> instead of br
    					$r = preg_replace("|<br.*?\>|i", "\n", $r);
    					$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities()
    				}
    				#Allow_repeat_tags
    				while (preg_match("|&lt;repeat.*?&gt;(.*?)&lt;/repeat&gt;|is", $tinymcetext, $a)) {
    				 	$r = preg_replace("| |i", "", $a[0]);#erase all the whitespace
    				 	$r = preg_replace("|</p><p>|i", "<br/>", $a[0]);#sometimes </p><p> instead of br
    					 #<repeat table="Service_Center_Table" sort="sc_num"></repeat>
    					$r = preg_replace("|<br.*?\>|i", "\n", $r);
    					$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities()
    				}
    				#Allow_categorytree_tags
    				while (preg_match("|&lt;categorytree.*?&gt;(.*?)&lt;/categorytree&gt;|is", $tinymcetext, $a)) {
    				 	$r = preg_replace("| |i", "", $a[0]);#erase all the whitespace
    				 	$r = preg_replace("|</p><p>|i", "<br/>", $a[0]);#sometimes </p><p> instead of br
    					$r = preg_replace("|<br.*?\>|i", "\n", $r);
    					$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities()
    				}
    				#Allow_includeonlyx_tags
    				while (preg_match("|&lt;includeonly&gt;(.*?)&lt;/includeonly&gt;|is", $tinymcetext, $a)) {
    				 	$r = preg_replace("| |i", "", $a[0]);#erase all the whitespace
    				 	$r = preg_replace("|</p><p>|i", "<br/>", $a[0]);#sometimes </p><p> instead of br
    					$r = preg_replace("|<br.*?\>|i", "\n", $r);
    					$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities()
    				}
    				#Allow_repeat_tags
    				while (preg_match("|&lt;sql2wiki.*?&gt;(.*?)&lt;/sql2wiki&gt;|is", $tinymcetext, $a)) {
    				 	$r = preg_replace("| |i", "", $a[0]);#erase all the whitespace
    				 	$r = preg_replace("|</p><p>|i", "<br/>", $a[0]);#sometimes </p><p> instead of br
    					 #<repeat table="Service_Center_Table" sort="sc_num"></repeat>
    					$r = preg_replace("|<br.*?\>|i", "\n", $r);
    					$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities()
    				}
                    ## EXTENSION TAGS END ##
                    
                    #Allow_a_tags
                            $i = 0;
                            $ta = md5("aopen");
                            while (preg_match("|(<a.*?\>)|i", $tinymcetext, $a)) {
                                    $j = $ta."_".md5($i);
                                    $List[$j]["content"] = $a[0];
                                    $List[$j]["index"] = $j;
                                    $tinymcetext = str_replace($a[0], $j, $tinymcetext);
                                    $i++;
                            }
                            $i = 0;
                            $ta = md5("aclose");
                            while (preg_match("|(</a>)|i", $tinymcetext, $a)) {
                                    $j = $ta."_".md5($i);
                                    $List[$j]["content"] = $a[0];
                                    $List[$j]["index"] = $j;
                                    $tinymcetext = str_replace($a[0], $j, $tinymcetext);
                                    $i++;
                            }
            
                    #Allow_img_tags
                            $i = 0;
                            $timg = md5("img");
                            while (preg_match("|(<img[^>]*?/>)|i", $tinymcetext, $a)) {
                                    $j = $timg."_".md5($i);
                                    $List[$j]["content"] = $a[0];
                                    $List[$j]["index"] = $j;
                                    $tinymcetext = str_replace($a[0], $j, $tinymcetext);
                                    $i++;
                            }
    
                    ## MEDIAWIKI WIKITEXT HANDLING ##
                    #'''''bold and italic'''''
                            while (preg_match("|'''''.*?'''''|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("'''''", "", $value);
                                    $r = preg_replace("|'''''.*?'''''|is", "<i><strong>".$value."</strong></i>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #'''bold'''
                            while (preg_match("|'''.*?'''|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("'''", "", $value);
                                    $r = preg_replace("|'''.*?'''|is", "<strong>".$value."</strong>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #''italic''
                            while (preg_match("|''.*?''|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("''", "", $value);
                                    $r = preg_replace("|''.*?''|is", "<i>".$value."</i>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                            
                    #=====level 4=====
                            while (preg_match("|=====.*?=====|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("=====", "", $value);
                                    $r = preg_replace("|=====.*?=====|is", "<h5>".$value."</h5>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #====level 3====
                            while (preg_match("|====.*?====|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("====", "", $value);
                                    $r = preg_replace("|====.*?====|is", "<h4>".$value."</h4>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #===level 2===
                            while (preg_match("|===.*?===|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("===", "", $value);
                                    $r = preg_replace("|===.*?===|is", "<h3>".$value."</h3>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #==heading==
                            while (preg_match("|==.*?==|is", $tinymcetext, $a)) {
                                    $value = implode(",", $a);
                                    $value = str_replace("==", "", $value);
                                    $r = preg_replace("|==.*?==|is", "<h2>".$value."</h2>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    #==heading 1==
                    ## Does not support <h1> tags because "|=.*?=|is" grabs too much
                    #---- horizontal line
                            while (preg_match("|----|is", $tinymcetext, $a)) {
                                    $r = preg_replace("|----|is", "<hr>", $a[0]);
                                    $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
                            }
                    ## MEDIAWIKI WIKITEXT HANDLING END ##
                    
    		$tagList = array("pre", "math", "gallery", "nowiki", "html");
    		foreach($tagList as $tag) {
    			while (preg_match("|&lt;($tag.*?)&gt;(.*?)&lt;/$tag&gt;|is", $tinymcetext, $a)) {	
    				$r = preg_replace("|<br.*?\>|i", "", $a[0]);
    				$r = preg_replace("|&nbsp;|i", " ", $r);
    				$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
    			}
    		}
    
    		foreach($q->mTagHooks as $tag => $func) {
    			while (preg_match("|&lt;($tag.*?)&gt;(.*?)&lt;/$tag&gt;|is", $tinymcetext, $a)) {	
    				$r = preg_replace("|<br.*?\>|i", "", $a[0]);
    				$r = preg_replace("|&nbsp;|i", " ", $r);
    				$tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);
    			}
    		}
                    $state = new StripState;
                    $x =& $state;
                    $tinymcetext = $q->strip($tinymcetext, $x);
                    # optional remove <p></p> 
                    #$tinymcetext = preg_replace('/<p[^>]*>/','',$tinymcetext);//Remove the start <p> or <p attr="">
    #                $tinymcetext = preg_replace('/<\/p>/', '<br />', $tinymcetext); // Replace the end
    				#$tinymcetext = preg_replace('/<\/p>/', '\n', $tinymcetext); // Replace the end
    				#$tinymcetext = preg_replace("|<br/>|i", "\n", $tinymcetext);
                    $tinymcetext = preg_replace("/<\/?tbody>/i","", $tinymcetext);
                    $tinymcetext = preg_replace("/$wgTinymceToken/i","", $tinymcetext); 
                    $tinymcetext = Sanitizer::removeHTMLtags( $tinymcetext, array( &$q, 'attributeStripCallback' ) );
                    $tinymcetext = $q->replaceVariables($tinymcetext);
             //$fcktext = $q->doDoubleUnderscore( $fcktext ); //var $fcktext is not set
               $tinymcetext = $q->doDoubleUnderscore( $tinymcetext ); // should be this
                    $tinymcetext = $q->replaceInternalLinks( $tinymcetext );
                    $tinymcetext = $q->replaceExternalLinks( $tinymcetext );
                    $tinymcetext = str_replace($q->mUniqPrefix."NOPARSE", "", $tinymcetext);
                    $tinymcetext = $q->doMagicLinks( $tinymcetext );
                    $tinymcetext = $q->formatHeadings( $tinymcetext, true );
                    $q->replaceLinkHolders( $tinymcetext );
                    $tinymcetext = $q->unstripNoWiki( $tinymcetext, $state );
                    $tinymcetext = $q->unstrip($tinymcetext, $state);
            
                    foreach($List as $item) {
                            $tinymcetext = str_replace($item["index"], $item["content"], $tinymcetext);
                            $i++;
                    }
                    
                    $text = $tinymcetext;
            }
            return true;
    }
    
    
    function wfTinymceAddScript ($q) { 
    
            global $wgOut, $wgTitle, $wgScriptPath, $wgMyWikiURL; 
            global $wgTempText, $wgTinymceDir, $wgTinymceTheme, $wgExt_valid_elements, $wgUseTinymce;
    
            $wgTinymceDir = "tinymce";
            $ns_allowed = true;
            $ns = $wgTitle->getNamespace();
    
            if ($ns_allowed && $wgUseTinymce)
            {
             	# following from http://rorlach.de/mediawiki/index.php/Toggle_TinyMCE
    			$wgOut->addScript("<script language=\"javascript\" type=\"text/javascript\">
    var tinyMCEmode = true;
    function toggleEditorMode(wpTextbox1,eleToggleLink) {
        try {
            if(tinyMCEmode) {
                tinyMCE.execCommand(\"mceRemoveControl\", false, wpTextbox1);
                tinyMCEmode = false;
                if(eleToggleLink)
                    eleToggleLink.innerHTML    =    \"Enable Advanced Editor\";
            } else {
                tinyMCE.execCommand(\"mceAddControl\", false, wpTextbox1);
                tinyMCEmode = true;
                if(eleToggleLink)
                    eleToggleLink.innerHTML    =    \"Disable Advanced Editor\";
            }
        } catch(e) {
            //error handling
        }
    }
    </script>");
    
            if (($wgTinymceTheme == "simple")){
                    $wgOut->addScript( "<script language=\"javascript\" type=\"text/javascript\" src=\"$wgScriptPath/extensions/$wgTinymceDir/jscripts/tiny_mce/tiny_mce.js\"></script><script language=\"javascript\" type=\"text/javascript\">tinyMCE.init({
            mode : \"textareas\",
            theme : \"simple\",
            convert_newlines_to_brs : false,
            apply_source_formatting : true,
            relative_urls : false,
            remove_script_host : true,
    		document_base_url : \"$wgMyWikiURL\",
            extended_valid_elements : \"$wgExt_valid_elements\"
    });</script>" );
    } elseif(($wgTinymceTheme == "advanced")) {
            $wgOut->addScript( "<script language=\"javascript\" type=\"text/javascript\" src=\"$wgScriptPath/extensions/$wgTinymceDir/jscripts/tiny_mce/tiny_mce.js\"></script><script language=\"javascript\" type=\"text/javascript\">tinyMCE.init({
            mode : \"textareas\",
            theme : \"advanced\",
            convert_newlines_to_brs : false,
            apply_source_formatting : true,
            relative_urls : false,
            remove_script_host : true,
    		document_base_url : \"$wgMyWikiURL\",
            extended_valid_elements : \"$wgExt_valid_elements\"
    });</script>" );
    }elseif(($wgTinymceTheme == "msword")) {
            $wgOut->addScript("<script language=\"javascript\" type=\"text/javascript\" src=\"$wgScriptPath/extensions/$wgTinymceDir/jscripts/tiny_mce/tiny_mce.js\"></script><script language=\"javascript\" type=\"text/javascript\">tinyMCE.init({
            mode : \"textareas\",
            theme : \"advanced\",
            extended_valid_elements : \"$wgExt_valid_elements\",
            convert_newlines_to_brs : false,
            apply_source_formatting : true,
            relative_urls : false,
            remove_script_host : true,
    		document_base_url : \"$wgMyWikiURL\",
            plugins : \"style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras\",
            theme_advanced_buttons1 : \"newdocument,save,|,print,|,iespell,|cut,copy,paste,pastetext,pasteword,|,undo,redo,|,link,unlink,image,hr,anchor,code,|,search,replace,|,tablecontrols,|,help\",
            theme_advanced_buttons2 : \"styleselect,formatselect,fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,cleanup,backcolor,forecolor,removeformat\",
            theme_advanced_buttons3 : \"insertdate,inserttime,|,sub,sup,|,charmap,emotions,media,|,ltr,rtl,|,fullscreen\",
            theme_advanced_toolbar_location : \"top\",
            theme_advanced_toolbar_align : \"left\"
    });</script>");
    }else{$wgOut->addScript("**TINYMCE NOT ENABLED: FIX wgTinymceTheme**<script language=\"javascript\" type=\"text/javascript\"></script>" );}
    		#Since editing add the button
    		$wgOut->addHTML("<p align=\"right\"><a id=\"toggleLink\" href=\"#\" title=\"toggle TinyMCE\" onclick=\"toggleEditorMode('wpTextbox1',this);\">Hide Editor</a></p>");
    }
    else{$wgOut->addScript("<script language=\"javascript\" type=\"text/javascript\"></script>" ); $wgUseTinymce = true; }
            return true;
    }
    
    # Check existing article for any tags we don't want TinyMCE parsing...
    function wfCheckBeforeEdit ($q, $text) { 
    	global $wgUseTinymce;
    	
    	if (preg_match("|&lt;(data.*?)&gt;(.*?)&lt;/data&gt;|is", $text, $a)) {
    		$wgUseTinymce = false;
    	}
    	elseif(preg_match("|<(data.*?)>(.*?)</data>|is", $text, $a)) {
    		$wgUseTinymce = false;}
    	else{$wgUseTinymce = true;}
    	return true;
    }
    
    ?>
    Und hier nochmal die abgeänderte localhost.php:

    Code:
    <?php
    # This file was automatically generated by the MediaWiki 1.18.0
    # installer. If you make manual changes, please keep track in case you
    # need to recreate them later.
    #
    # See includes/DefaultSettings.php for all configurable settings
    # and their default values, but don't forget to make changes in _this_
    # file, not there.
    #
    # Further documentation for configuration settings may be found at:
    # Manual:Configuration settings - MediaWiki
    
    # Protect against web entry
    if ( !defined( 'MEDIAWIKI' ) ) {
        exit;
    }
    
    ## Uncomment this to disable output compression
    # $wgDisableOutputCompression = true;
    
    $wgSitename      = "Wiki Test";
    $wgMetaNamespace = "Wiki_Test";
    
    ## The URL base path to the directory containing the wiki;
    ## defaults for all runtime URL paths are based off of this.
    ## For more information on customizing the URLs please see:
    ## Manual:Short URL - MediaWiki
    $wgScriptPath       = "/mediawiki-1.18.0";
    $wgScriptExtension  = ".php";
    
    ## The protocol and server name to use in fully-qualified URLs
    $wgServer           = "server";
    
    ## The relative URL path to the skins directory
    $wgStylePath        = "$wgScriptPath/skins";
    
    ## The relative URL path to the logo.  Make sure you change this from the default,
    ## or else you'll overwrite your logo when you upgrade!
    $wgLogo             = "$wgStylePath/common/images/wiki.png";
    
    ## UPO means: this is also a user preference option
    
    $wgEnableEmail      = true;
    $wgEnableUserEmail  = true; # UPO
    
    $wgEmergencyContact = "XXXXX";
    $wgPasswordSender   = "XXXXXX";
    
    $wgEnotifUserTalk      = false; # UPO
    $wgEnotifWatchlist     = false; # UPO
    $wgEmailAuthentication = true;
    
    ## Database settings
    $wgDBtype           = "mysql";
    $wgDBserver         = "server";
    $wgDBname           = "DBname";
    $wgDBuser           = "DBuser";
    $wgDBpassword       = "XXXXX";
    
    # MySQL specific settings
    $wgDBprefix         = "";
    
    # MySQL table options to use during installation or update
    $wgDBTableOptions   = "ENGINE=MyISAM, DEFAULT CHARSET=binary";
    
    # Experimental charset support for MySQL 4.1/5.0.
    $wgDBmysql5 = false;
    
    ## Shared memory settings
    $wgMainCacheType    = CACHE_NONE;
    $wgMemCachedServers = array();
    
    ## To enable image uploads, make sure the 'images' directory
    ## is writable, then set this to true:
    $wgEnableUploads  = true;
    #$wgUseImageMagick = true;
    #$wgImageMagickConvertCommand = "/usr/bin/convert";
    
    # InstantCommons allows wiki to use images from Wikimedia Commons
    $wgUseInstantCommons  = true;
    
    ## If you use ImageMagick (or any other shell command) on a
    ## Linux server, this will need to be set to the name of an
    ## available UTF-8 locale
    $wgShellLocale = "en_US.utf8";
    
    ## If you want to use image uploads under safe mode,
    ## create the directories images/archive, images/thumb and
    ## images/temp, and make them all writable. Then uncomment
    ## this, if it's not already uncommented:
    #$wgHashedUploadDirectory = false;
    
    ## Set $wgCacheDirectory to a writable directory on the web server
    ## to make your wiki go slightly faster. The directory should not
    ## be publically accessible from the web.
    #$wgCacheDirectory = "$IP/cache";
    
    # Site language code, should be one of the list in ./languages/Names.php
    $wgLanguageCode = "de";
    
    $wgSecretKey = "XXXXXX";
    
    # Site upgrade key. Must be set to a string (default provided) to turn on the
    # web installer while LocalSettings.php is in place
    $wgUpgradeKey = "XXXXXX";
    
    ## Default skin: you can change the default skin. Use the internal symbolic
    ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
    $wgDefaultSkin = "vector";
    
    ## For attaching licensing metadata to pages, and displaying an
    ## appropriate copyright notice / icon. GNU Free Documentation
    ## License and Creative Commons licenses are supported so far.
    $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
    $wgRightsUrl  = "http://creativecommons.org/licenses/by-nc-sa/3.0/";
    $wgRightsText = "Creative Commons „Namensnennung, nicht kommerziell, Weitergabe unter gleichen Bedingungen“";
    $wgRightsIcon = "{$wgStylePath}/common/images/cc-by-nc-sa.png";
    # $wgRightsCode = ""; # Not yet used
    
    # Path to the GNU diff3 utility. Used for conflict resolution.
    $wgDiff3 = "";
    
    # Query string length limit for ResourceLoader. You should only set this if
    # your web server has a query string length limit (then set it to that limit),
    # or if you have suhosin.get.max_value_length set in php.ini (then set it to
    # that value)
    $wgResourceLoaderMaxQueryLength = -1;
    
    # The following permissions were set based on your choice in the installer
    $wgGroupPermissions['*']['createaccount'] = false;
    $wgGroupPermissions['*']['edit'] = false;
    
    
    # End of automatically generated settings.
    # Add more configuration options below.
    
    
    #### TinyMCE_MW.php: Easily implement Moxiecode's TinyMCE into MediaWiki
    $wgUseTinymce = true;#Init needed for clicking on a new article link
    $wgDefaultUserOptions ['showtoolbar'] = 0;  #new users get this default or modify DefaultSetting.php
    $wgTinymceTheme = "msword";                 #"simple", "advanced", "msword", else none
    $wgMyWikiURL = "http://$wgDBserver/$wgScriptPath/index.php/";
    $wgExt_valid_elements = "data[table|template],repeat[table|sort],categorytree[mode|depth],inputbox[type|bgcolor|width|default|preload|editintro|buttonlabel|searchbuttonlabel|break], big";
    require_once("$IP/extensions/TinyMCE_MW.php");
    ?>

  11. #10
    HardAndSoft HardAndSoft ist offline
    Avatar von HardAndSoft

    AW: Media Wiki localhost.php Fehler

    Spontan fällt mir auf, dass in der neuen localhost.ini die letzte Zeile fehlt, nämlich:
    ?>



  12. #11
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    Sorry, muss ein Copy&Paste Fehler gewesen sein. Soll aber - habe ich gelesen - bei der localhost auch nichts ausmachen.
    Daran liegt es also auch nicht :/

  13. #12
    DD64 DD64 ist offline
    Avatar von DD64

    AW: Media Wiki localhost.php Fehler

    Es konnte keine Instanz von StripState erzeugt werden (250), deshalb der Fehler in Zeile 252.
    Solche Fehler in der Downloadversion von MediaWiki? Hast du mal eine andere Version probiert?

  14. #13
    Bowser Jr. Bowser Jr. ist offline
    Avatar von Bowser Jr.

    AW: Media Wiki localhost.php Fehler

    Nein, wenn das allerdings die einzige Möglichkeit ist, werde ich das in Angriff nehmen, sobald ich mich nochmal rumgehört habe.

Ähnliche Themen


  1. Fehler bei der Installation von Update Rollup 2 für Windows XP Media Center Edition: Also ich hab ein Problem, ich wollte meine Xbox 360 mit dem PC verbinden, allerdings kann ich folgendes Update Rollup 2 für Windows XP Media Center...

  2. Skript fehler bei media player 11: Wenn ich beim Media player 11 auf Albuminformation klicke bekomm ich die Meldung Skriptfehler Zeile 1 Zeichen 234 Wer kann mir helfen?

  3. Media Manager for PSP 3.0 Fehler: Hi, ich habe mir gerade den Media Manager runtergeladen und als ich in dem Programm auf den PSP-Store gehen wollte sagte er mir ich solle den neuen...

  4. Media Wiki Fehler: Ich hab gestern abend meine Wiki gupdatet, da mein server auf php5 umgestellt wurde. Jetzt bekomm ich fehlermeldungen. Warning: ini_set() has been...