danke, wieder was gelernt...
neuer Server: PHP Version 5.2.17-pl0-gentoo mit Linux ms
alter Server: PHP Version 5.2.6 Linux
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellendanke, wieder was gelernt...
neuer Server: PHP Version 5.2.17-pl0-gentoo mit Linux ms
alter Server: PHP Version 5.2.6 Linux
keiner ne Idee?
mein erster Versuch, den ich unternehmen würde, wäre mysql-Datenbank und wordpressordner nochmal komplett zu löschen, neu hochladen und zu installieren.
hatte gestern auch ein problem, dass wordpress etwas nicht finden konnte, dann hab ich einfach nochmal alles gelöscht und neu installiert, dann gings komischerweise...
ansonsten vlt. noch bei wp-settings.php, den speicher von 32mb auf 64 erhöhen oder in der wp-config.php gleich unter
<?php
PHP-Code:
@ini_set("memory_limit",'64M');
das wären halt die zwei dinge, die ich probieren würde. vielleicht liegt es auch am hoster selbst?
ist halt komisch, weil das plugin auf meinem alten webspace funktioniert.
liegt es daran, dass die pfade geändert wurden? vielleicht falsch? jedenfalls hat mein hoster gesagt ich soll "home" mit "var" ersetzen und "web21" mit "web5"
so sieht das script von der higlighter.php aus
wo kann ich die daten für meine php version finden und wo welches system ich habe?
<?php
/**
* @author John Godley
* @copyright Copyright (C) John Godley
**/
/*
============================================================================================================
This software is provided "as is" and any express or implied warranties, including, but not limited to, the
implied warranties of merchantibility and fitness for a particular purpose are disclaimed. In no event shall
the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or
consequential damages (including, but not limited to, procurement of substitute goods or services; loss of
use, data, or profits; or business interruption) however caused and on any theory of liability, whether in
contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of
this software, even if advised of the possibility of such damage.
For full license details see license.txt
============================================================================================================ */
/**
* Text highlighting
*
* @package default
**/
class Highlighter {
var $first_match = -1;
var $text = '';
var $words = array ();
/**
* Constructor.
*
* @param string $text Original text
* @param array $words Array of words to highlight
* @param boolean $strip Optional removal of HTML
* @return void
**/
function Highlighter( $text, $words, $strip = false ) {
if ( $strip )
$this->text = $this->strip( $text );
else
$this->text = $text;
$this->matches = 0;
$this->first_match = strlen( $text );
// Find the first matched term
foreach ( (array)$words AS $word ) {
if ( preg_match( '/('.$word.')(?!=")/i', $this->text, $matches, PREG_OFFSET_CAPTURE ) > 0 )
$this->first_match = min( $this->first_match, $matches[0][1] );
$this->words[] = $word;
}
$this->words = array_filter( $this->words );
$this->words = apply_filters( 'su_highlight_words', $this->words );
if ( $this->first_match >= strlen( $this->text ) )
$this->first_match = -1;
}
/**
* Remove all HTML
*
* @param string $text HTML text
* @return string Plain text
**/
function strip( $text ) {
$text = preg_replace( preg_encoding( '/<script(.*?)<\/script>/s' ), '', $text );
$text = preg_replace( preg_encoding( '/<!--(.*?)-->/s' ), '', $text );
$text = str_replace( '>', '> ', $text ); // Makes the strip function look better
$text = wp_filter_nohtml_kses( $text );
$text = stripslashes( $text );
$text = preg_replace( preg_encoding( '/<!--(.*?)-->/s' ), '', $text );
$text = strip_html( $text ); // Remove all HTML
return $text;
}
/**
* Zooms to a particular portion of text that represents the first highlighted term
* If no highlighted term is found the zoomed portion is set to the start
*
* @param integer $before Number of characters to display before the first matched term
* @param integer $after Number of characters to display after the first matched term
* @return string Zoomed text
**/
function zoom( $before = 100, $after = 400 ) {
$text = $this->text;
// Now zoom
if ( $this->first_match != -1 ) {
$start = max( 0, $this->first_match - $before );
$end = min( $this->first_match + $after, strlen( $text ) );
$new = substr( $text, $start, $end - $start );
if ( $start != 0 )
$new = preg_replace( '/^[^ ]*/', '', $new );
if ( $end != strlen( $text ) )
$new = preg_replace( '/[^ ]*$/', '', $new );
$new = str_replace( ' ,', ',', $new );
$new = str_replace( ' .', '.', $new );
$new = trim( $new );
$text = ( $start > 0 ? '… ' : '' ).$new.( $end < strlen( $text ) ? ' …' : '' );
}
elseif ( $this->first_match == -1 ) {
$text = substr( $text, 0, $after );
$text = preg_replace( '/[^ ]*$/', '', $text );
$text .= '…';
}
$this->text = $text;
}
/**
* Does this instance have any matched terms?
*
* @param string
* @return void
**/
function has_matches() {
return $this->first_match != -1;
}
/**
* Reformat zoomed text suitable for display
*
* @param string $text Text to reformat
* @return string Reformatted text
**/
function reformat( $text ) {
return str_replace( '<br />', '<br /><br />', wpautop( $text ) );
}
/**
* Get highlighted text
*
* @return string Text
**/
function get() {
return $this->text;
}
/**
* Highlight individual words
*
* @param object $links Not sure
* @return string Highlighted text
**/
function mark_words( $links = false ) {
$text = $this->text;
$html = strpos( $text, '<' ) === false ? false : true;
$this->mark_links = $links;
foreach ( $this->words AS $pos => $word ) {
if ( $pos > 5 )
$pos = 1;
$this->word_count = 0;
$this->word_pos = $pos;
if ( $html )
$text = @preg_replace_callback( preg_encoding( '/(?<=>)([^<]+)?('.$word.')(?!=")/i' ), array( &$this, 'highlight_html_word' ), $text );
else
$text = preg_replace_callback( '/('.$word.')(?!=")/iu', array( &$this, 'highlight_plain_word' ), $text );
}
$this->text = $text;
return $text;
}
/**
* Highlight plain text word
*
* @return void
**/
function highlight_plain_word( $words ) {
$id = '';
if ( $this->word_count == 0 && $this->mark_links )
$id = 'id="high_'.( $this->word_pos + 1 ).'"';
$this->word_count++;
return '<span '.$id.' class="searchterm'.( $this->word_pos + 1 ).'">'.$words[1].'</span>';
}
/**
* Highlight HTML word
*
* @return void
**/
function highlight_html_word( $words ) {
$id = '';
if ( $this->word_count == 0 && $this->mark_links )
$id = 'id="high_'.( $this->word_pos + 1 ).'"';
$this->word_count++;
return $words[1].'<span '.$id.' class="searchterm'.( $this->word_pos + 1 ).'">'.$words[2].'</span>';
}
}
Alles anzeigen
Bei meinem Umzug hab ich in den mysql-dateien alle pfade mit home/www/web153/html/ in var/www/web5/html umgeändert. wenn ich jetzt das search unleased plugin installiere und auf meinem blog eine suchanfrage starte kommt diese fehlermeldung:
die Datei war drin, hab den kompletten ordner einfach nochmal gelöscht, sowie die datenbank und dann neu hochgeladen, jetzt funktioniert es komischerweise. trotzdem, danke!
Bin gerade beim Umzug von meinen Wordpress-blogs, hat bisher gut funktioniert, nur beim jetztigen gibt es ein Problem:
Wenn ich die Seite unter meinem neuen Webspace aufrufen will kommt das hier
require(/var/www/web215/html/britischkurzhaar/wp-includes/kses.php) [function.require]: failed to open stream: No such file or directory in /var/www/web5/html/britischkurzhaar/wp-settings.php on line 376
komischerweise findet sich wordpress auch ohne angabe der richtigen pfade zurecht...plugins funktionieren auch. :shock:
das einfachste wird wohl sein, die mysql-Datenbank runterzuladen und mit dem texteditor zu öffnen und dann alle webspace urls mit der "ersetzen" Funkion zu aktualisieren. Und dann wieder hochladen...
Ok, aber ich möchte es lieber ohne plugin machen, welche pfade sind denn alle zu ändern?
achso, komme gerade ganz durcheinander.
also bei allen webseiten, die ich umziehe, bleibt die url gleich nur die url des webspaces ändert sich. muss ich also gar nichts in der wp_options-Datei ändern?
bei meiner ersten umgezogenen webseite hab ich nur das geändert:
http://www.pictureupload.de/originals/pict…03_options-.PNG
Soll ich das wieder rückgängi machen?
die kategorie "siteurl" finde ich auf der ersten seite, name_options ist aber auf keiner seite zu finden.
recently_edited, kann es also nicht sein?
Wollte eben den Pfad in der wp_options ändern, aber die einzige url die ich dort finde ist die:
http://www.pictureupload.de/originals/pict…318_options.PNG
Bei einem anderen Wordpress-Blog war die kateogrie "pfad" dagegen vorhanden. Liegt es an der Worpdpress-Version?
Wollte eben die ganzen Wordpress-Datenbanken in mysql auf einmal hochladen, aber es wird nur eine maximale Upload-Größe von 8 MB akzeptiert. Einige meiner Webseiten-Datenbanken sind über 20 MB. Was kann man da machen?
Hat wohl einen anderen Grund warum diese Urls in der mysql drinstehen, mein Hoster speichert irgendwie alles, was im wordpress einmal drin war und löscht keine früheren Urls oder Texte aus der Datei.
http:/kd5328_56781.webspace-2.hostername.de/meinewebseite/ ist die Standardurl, wenn ich einen neuen Blog installiere.
Es war nur die Änderung der Pfade in (wp-options) und Datenbankname (wp-config) nötig.
Die erste Webseite ist jetzt schonmal ohne Probleme umgezogen.
Glaub bei meinem Hoster ist eh alles anders...
hab so das gefühl, dass man da einiges ändern muss, der Datenbankname ist z.b. auch in den mysql-Dateien zu finden
Was muss man denn bei einem Serverumzug in den Mysql-Dateien alles ändern? Die Domain bleibt gleich.
in meinen Wordpress-Datenbanken stehen z.b. immer solche URLs, bestimmt 60mal pro webseite.
http:/kd5328_56781.webspace-2.hostername.de/meinewebseite/
Die muss ich dann wohl alle mit dr neuen Url des Webspacepaket ersetzen?
Gibt es sonst noch was zu ändern?
so, backups sind eingespielt, seiten laufen wieder! Danke für eure Hilfe.
Leg mich jetzt ins Bett und krieg nen Herzinfarkt...