pragmaMx Support Forum

pragmaMx => Allgemeines => Thema gestartet von: nfv09 am 13 August 2013, 11:02:10

Titel: [gelöst] Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 11:02:10
Hallo zusammen, da ich das Paket bei meinem Provider ändern musste, bin ich "zwangsweise" ein einen Server mit php 5.4 umgezogen worden. Nun habe ich einige Probleme (z.B. SPAW, Gästebuch, Gallerie). Ich kann nicht genau sagen, was alles an dem Umzug hängt, möchte aber auch nicht überall rumbasteln und es noch verschimmern. Wann ist denn mit der angekündigten Anpassung (Update) zu rechnen?

Vielen Dank für eure Mühe!

CMS-Version:
pragmaMx 1.12.3.1.33.4.14 (2012-06-21)
PHP-Version:
5.4.16-nmm1  (PHP-Info)
MySQL-Version:
5.5.28-nmm3-log
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: AlternativeComputing am 13 August 2013, 11:35:20
Was für Probleme sind es?
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 12:39:39
Im Gästebuch werden einige Beiträge nicht angezeigt, in SPAW sind die Felder zum editieren leer (ggf. wenn ein Umlaut im Text ist), CPG wird nicht angezeigt (da versuche ich auf Sirius umzustellen, aber das Script läuft schon mehrere Tage) und zudem jede Menge Fehler von Blöcken, wenn man sich die Debug-Informationen anschaut (PHP Run-time notice, eregi() is deprecated
,...)
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: AlternativeComputing am 13 August 2013, 12:45:13
Welcher Hoster und welches Paket?
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 12:49:34
http://all-inkl.com/webhosting/premium/ (http://all-inkl.com/webhosting/premium/)
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: AlternativeComputing am 13 August 2013, 13:05:25
Wenn Du mit mod_rewrite arbeitest, leg Dir eine neue .htaccess Datei mit folgenden Inhalt an:


# pragmaMx - Web Content Management System
# Copyright by pragmaMx Developer Team - http://www.pragmamx.org
# $Revision: 1.15 $
# $Author: tora60 $
# $Date: 2009/04/27 20:10:23 $

# rename this file to .htaccess, and you will get nice and clean urls.

# Depends on your configuration, you must set RewrteBase to
# switch on Mod_rewrite. See for this the online docs:
# http://httpd.apache.org/docs/mod/mod_rewrite.html

AddHandler php53-cgi .php // Schaltet wieder auf PHP 5.3 um

# falls nicht funktioniert, dann die nächste Zeile wieder auskommentieren!
# (Am Anfang der nächsten Zeile ein "#" einfügen... )
#Options +FollowSymLinks
Options +FollowSymLinks

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES CACHING ##

# Rewrite Engine aktivieren
RewriteEngine on

# eventuell existierendes utf-8 Problem fixen
SetEnv PMX_REWRITE_DECODE_UTF8 off

# evtl. bei Bedarf Rewrite Basisordner definieren
# falls nicht funktioniert, dann die nächste Zeile wieder einkommentieren, vorher allerdings den Pfad anpassen!!!
RewriteBase /

# individuelle Rewrite-Regeln:
RewriteRule ^home\.html$ index.php [L]


# ##########################################################################
#
# Individuelle Rewrite-Regeln fuer Standardmodule
#
# ##########################################################################


# Your_Account Modul:
RewriteRule ^register-me\.html$ modules.php?name=User_Registration [L]
RewriteRule (^myaccount|^log-me-in)\.html$ modules.php?name=Your_Account [L]
RewriteRule ^log-me-out\.html$ modules.php?name=Your_Account&op=logout [L]
RewriteRule ^mydata\.html$ modules.php?name=Your_Account&op=edituser [L]
RewriteRule ^mysettings\.html$ modules.php?name=Your_Account&op=edithome [L]

# Downloads
RewriteRule ^Downloads-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&cid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-view-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=view&lid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-get-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=getit&lid=$1&noJpC=YES$2 [L]
RewriteRule ^Downloads-.*-report-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=reportbroken&lid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-modify-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=modifyrequest&lid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-rating-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=rating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-outsiderating-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=outsiderating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Downloads-.*-ratingdetails-([0-9]+)(-.*)?\.html$ mod.php?name=Downloads&op=viewratingdetails&lid=$1&_MORE_=$2 [L]

# News  ( Achtung, muss vor eigentlichen News stehen!! )
RewriteRule ^News-category-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=News&file=categories&catid=$1&_MORE_=$2 [L]
RewriteRule ^News-topic-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=News&topic=$1&_MORE_=$2 [L]
RewriteRule ^News-.*-item-([0-9]+)(-.*)?\.html$ mod.php?name=News&file=article&sid=$1&_MORE_=$2 [L]

# Links
RewriteRule ^Web_Links-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&cid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-view-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=view&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-visit-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=visit&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-rating-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=rating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-outsiderating-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=outsiderating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-report-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=reportbroken&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-modify-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=modifyrequest&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-rating-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=rating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-outsiderating-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=outsiderating&lid=$1&_MORE_=$2 [L]
RewriteRule ^Web_Links-.*-ratingdetails-([0-9]+)(-.*)?\.html$ mod.php?name=Web_Links&op=viewratingdetails&lid=$1&_MORE_=$2 [L]

# Surveys
RewriteRule ^Surveys-results-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Surveys&op=results&pollID=$1&_MORE_=$2 [L]
RewriteRule ^Surveys-title-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Surveys&pollID=$1&_MORE_=$2 [L]

# Sections
RewriteRule ^Sections-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=Sections&secid=$1&_MORE_=$2 [L]
RewriteRule ^Sections-.*-article-([0-9]+)(-.*)?\.html$ mod.php?name=Sections&artid=$1&_MORE_=$2 [L]

# Reviews
RewriteRule ^Reviews-.*-show-([0-9]+)(-.*)?\.html$ mod.php?name=Reviews&rop=showcontent&id=$1&_MORE_=$2 [L]
RewriteRule ^Reviews-.*-addcomment-([0-9]+)(-.*)?\.html$ mod.php?name=Reviews&rop=postcomment&id=$1&_MORE_=$2 [L]
RewriteRule ^Reviews-.*-send-([0-9]+)(-.*)?\.html$ mod.php?name=Reviews&rop=premail_review&id=$1&_MORE_=$2 [L]

# My_eGallery
RewriteRule ^My_eGallery-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=My_eGallery&do=showgall&gid=$1&_MORE_=$2 [L]
RewriteRule ^My_eGallery-.*-picture-([0-9]+)(-.*)?\.html$ mod.php?name=My_eGallery&do=showpic&pid=$1&_MORE_=$2 [L]
RewriteRule ^My_eGallery-upload.html$ mod.php?name=My_eGallery&do=upload [L]
RewriteRule ^My_eGallery-top10.html$ mod.php?name=My_eGallery&do=top [L]

# FAQ
RewriteRule ^FAQ-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=FAQ&cat=$1&_MORE_=$2 [L]

# Content
RewriteRule ^Content-.*-category-([0-9]+)(-.*)?\.html$ mod.php?name=Content&cid=$1&_MORE_=$2 [L]
RewriteRule ^Content-.*-item-([0-9]+)(-.*)?\.html$ mod.php?name=Content&pid=$1&_MORE_=$2 [L]

# Enzyclopedia
RewriteRule ^Encyclopedia-title-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Encyclopedia&op=list_content&eid=$1&_MORE_=$2 [L]
RewriteRule ^Encyclopedia-list-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Encyclopedia&op=terms&eid=$1&_MORE_=$2 [L]
RewriteRule ^Encyclopedia-.*-item-([0-9]+)(-.*)?\.html$ mod.php?name=Encyclopedia&op=content&tid=$1&_MORE_=$2 [L]

# individuelle Rewriteregel fuer mxContest
RewriteRule ^Contest-category-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Contest&cid=$1&_MORE_=$2 [L]
RewriteRule ^Contest-title-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Contest&pid=$1&_MORE_=$2 [L]
RewriteRule ^Contest-picture-[^0-9]*-([0-9]+)(-.*)?\.html$ mod.php?name=Contest&pa=contest_pic_show&pid=$1&_MORE_=$2 [L]
RewriteRule ^Contest-rules-.*-cat-([0-9]+)(-.*)?\.html$ mod.php?name=Contest&pa=contest_rules&cid=$1&_MORE_=$2 [L]
RewriteRule ^Contest-rules-.*-con-([0-9]+)(-.*)?\.html$ mod.php?name=Contest&pa=contest_show_rules&con=$1&_MORE_=$2 [L]
RewriteRule ^Contest-results\.html$ mod.php?name=Contest&pa=list_results [L]
RewriteRule ^Contest-statistics\.html$ mod.php?name=Contest&pa=statistics [L]
RewriteRule ^Contest-mostviewed\.html$ mod.php?name=Contest&pa=mostviewed [L]
RewriteRule ^Contest-mostpoints\.html$ mod.php?name=Contest&pa=mostpoints [L]

# mxBoard
RewriteRule ^eBoard-forum-.*-view-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=forumdisplay&fid=$1&_MORE_=$2 [L]
RewriteRule ^eBoard-thread-.*-view-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=viewthread&tid=$1&_MORE_=$2 [L]
RewriteRule ^eBoard-forum-.*-newthread-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=post.newtopic&fid=$1&_MORE_=$2 [L]
RewriteRule ^eBoard-thread-.*-edit-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=post.edit&tid=$1&_MORE_=$2 [L]
RewriteRule ^eBoard-thread-.*-reply-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=post.reply&tid=$1&_MORE_=$2 [L]
RewriteRule ^eBoard-member-view-([^/]+)?\.html$ mod.php?name=eBoard&file=member&action=viewpro&member=$1 [L]
RewriteRule ^eBoard-member-online\.html$ mod.php?name=eBoard&file=misc&action=online [L]
RewriteRule ^eBoard-memberlist\.html$ mod.php?name=eBoard&file=memberslist [L]
RewriteRule ^eBoard-search\.html$ mod.php?name=eBoard&file=search [L]
RewriteRule ^eBoard-faq\.html$ mod.php?name=eBoard&file=misc&action=faq [L]
RewriteRule ^eBoard-newposts\.html$ mod.php?name=eBoard&file=messslv [L]
RewriteRule ^eBoard-postoftheday-([0-9]+)(-.*)?\.html$ mod.php?name=eBoard&file=messslv&view=$1 [L]
RewriteRule ^eBoard-statistics\.html$ mod.php?name=eBoard&file=stats [L]
RewriteRule ^eBoard-boardruless\.html$ mod.php?name=eBoard&file=bbrules [L]
RewriteRule ^eBoard-memberlist-numberofposts-([^/]+)?\.html$ mod.php?name=eBoard&file=memberslist&order=postnum&_MORE_=$1 [L]
RewriteRule ^eBoard-memberlist-user\.html$ mod.php?name=eBoard&file=memberslist&order=username [L]

# Forum
RewriteRule ^Forum-.*-view-([0-9]+)(-.*)?\.html$  mod.php?name=Forum&board=$1&_MORE_=$2 [L]
RewriteRule ^Forum-thread-.*-view-([0-9]+)(-.*)?\.html$ mod.php?name=Forum&topic=$1&_MORE_=$2 [L]
RewriteRule ^Forum-.*-newthread-([0-9]+)(-.*)?\.html$  mod.php?name=Forum&action=post;board=$1&_MORE_=$2 [L]
RewriteRule ^Forum-thread-.*-edit-([0-9]+)(-.*)?\.html$ mod.php?name=Forum&action=post;msg=$1&_MORE_=$2 [L]
RewriteRule ^Forum-thread-.*-reply-([0-9]+)(-.*)?\.html$ mod.php?name=Forum&action=post;topic=$1&_MORE_=$2 [L]


# ##############################################################################
# URL's automatisch generieren fuer alles was ueber die modules.php laeuft
# die Variable $modrew_prepareauto muss in der includes/mx_modrewrite.php auf TRUE stehen!
# diese Regeln nicht verändern!!!
# ##############################################################################

RewriteRule ^([^-]+)-([^/]+)\.html$ mod.php?$1&________________________$2 [L]
RewriteRule ^([^-/]+)\.html$ mod.php?$1 [L]



Ohne mod_rewrite:



AddHandler php53-cgi .php // Schaltet wieder auf PHP 5.3 um

Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 13:07:32
Vielen Dank Peter, werde ich heute Abend versuchen.

Gruß
Florian
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: AlternativeComputing am 13 August 2013, 13:08:25
Das steht so in den FAQs Deines Hosters.
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 13:15:39
Ich hätte auch auf die Anpassung vom PMX gewartet, die ja schon angekündigt wurde, nur eben ohne Termin. Aber so kann ich es ja umgehen. Danke dir!
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: nfv09 am 13 August 2013, 18:55:06
Danke Peter, funktioniert so.
Titel: Re:Probleme nach Serverumzug - php 5.4
Beitrag von: AlternativeComputing am 13 August 2013, 19:05:04
Gerne doch, setze noch den Fred auf gelöst bitte.