WebSite X5Help Center

 
Bernhard S.
Bernhard S.
User

Dynamische Seite mit PHP 7.2  de

Author: Bernhard S.
Visited 2050, Followers 1, Shared 0  

Bei dem Provider Euserv habe ich auf die PHP Version 7.2 umgestellt. Danach titt folgendes Problem in den dynamischen Webseiten auf: 

1. Der PHP Code wird angezeigt

2. Jeder kann ohne Anmeldung den dynamischen Text ändern.

Was kann ich tun um dies zu verhundern. Um das Problem zu lösen habe ich beim Provider wieder die alte PHP Version eingestellt.

Mit freundlichen Grüßen

Bernhard Schütz

Posted on the
9 ANSWERS - 1 CORRECT
JJ. JUAG
JJ. JUAG
User

Wenn der PHP Code angezeigt wird im Browser, dann ist PHP nicht aktiv. Vermutlich müssen Sie php7.2 nicht nur auswählen, sondern auch noch auf dem Server aktivieren. Fragen Sie ihren Hoster dazu!

JJ.

Read more
Posted on the from JJ. JUAG
Bernhard S.
Bernhard S.
User
Author

PHP ist beim Provider aktiviert, vor der Umstellung beim Provider auf PHP 7.2 hat die Dynamische Website ja funktoniert.

Wenn ich beim Provider wieder auf 5.6 zurück stelle ist ja auch die Dynamische Webseite wieder in Ordnung.

Die Ursache muß also im Programmcode liegen.

Read more
Posted on the from Bernhard S.
JJ. JUAG
JJ. JUAG
User

Soweit ich ihre Angaben hier verstehen kann, ist also, wenn php7.2 aktiviert ist, auf dem Server trotzdem der php-Code im Browser dargestellt statt ausgeführt, oder gibt es eine andere Meldung? Eventuell muss auch noch etwas in den Einstellungen von php7.2 (z.Bsp. wenn https verwendent wird) erfolgen. Mal den Hoster fragen?

Haben Sie im Browser mal ihredomain.ext/admin (ihredomain.ext mit ihrer URL ersetzen, Zugangsdaten im Projekt) gestartet und die Tests angesehen, ob php 7.2 "pass" meldet?

Wenn php nur für Dynamische Seiten nicht ausgeführt wird, alle einstellungen auf dem Server ok sind und keine Meldung erfolgt und andere Seiten im Projekt mit php funktionieren, mus dann wohl ein Entwickler von Incomedia weiter sehen.

JJ.

Read more
Posted on the from JJ. JUAG
Bernhard S.
Bernhard S.
User
Author

Wenn ich auf php 7.2 umstelle und den Aufruf www.prosoftgera.de/admin durchführe kommt folgender Code

<?php include "includes.php"; // Redirect to a specific section $redirect = Configuration::getControlPanel()->getRedirectFromArray($_GET); if ($redirect) { header("Location: " . $redirect); exit(0); } // Otherwise attempt the login Configuration::getControlPanel()->accessOrRedirect(); $main = Configuration::getControlPanel()->getMainTemplate(); $main->pagetitle = l10n("admin_dashboard", "Dashboard"); $main->stylesheets = array("css/dashboard.css"); $main->content = ""; // ---------- // Statistics // ---------- if (isset($imSettings['analytics']) && $imSettings['analytics']['type'] == 'wsx5analytics') { $analytics = Configuration::getAnalytics(); // Visitors Count $visitsPlotT = new Template("templates/dashboard/simple-plot.php"); $visitsPlotT->title = l10n('admin_analytics_visitorscount', 'Visitors Count') . " - " . l10n("admin_lastdays", "Last 7 days"); $visitsPlotT->type = "line"; $visitsPlotT->colorIndex = 0; $visitsPlotT->data = $analytics->getTotalSiteVisitors(date("Y-m-d H:i:s", strtotime("-7 days")), date("Y-m-d H:i:s")); // Views count $viewsPlotT = new Template("templates/dashboard/simple-plot.php"); $viewsPlotT->title = l10n('admin_analytics_pageviews', 'Page Views') . " - " . l10n("admin_lastdays", "Last 7 days"); $viewsPlotT->type = "line"; $viewsPlotT->colorIndex = 1; $viewsPlotT->data = $analytics->getPageViews(date("Y-m-d H:i:s", strtotime("-7 days")), date("Y-m-d H:i:s")); // Main render $boxT = new Template("templates/dashboard/box.php"); $boxT->title = l10n("admin_analytics_title", "Statistics"); $boxT->content = $visitsPlotT->render(); $boxT->content .= $viewsPlotT->render(); $boxT->image = "images/analytics_black.png"; $main->content .= $boxT->render(); } // --------------- // E-Commerce Cart // --------------- if (isset($imSettings['ecommerce']) && isset($imSettings['ecommerce']['database'])) { $ecommerce = Configuration::getCart(); // Clean the temp files $ecommerce->deleteTemporaryFiles("../"); // Main render $boxT = new Template("templates/dashboard/box.php"); $boxT->title = l10n("cart_title", "Orders"); $boxT->content = ""; $boxT->image = "images/shop_black.png"; if ($ecommerce->isDbConnected()) { // Connection check // Sales count $ordersPlotT = new Template("templates/dashboard/simple-plot.php"); $ordersPlotT->title = l10n('cart_plot_sales', 'Sales') . " - " . l10n("admin_lastdays", "Last 7 days"); $ordersPlotT->type = "line"; $ordersPlotT->colorIndex = 2; $ordersPlotT->data = $ecommerce->getOrdersCountByDate(date("Y-m-d", strtotime("-7 days")) . " 00:00:01", date("Y-m-d") . " 23:59:59"); $boxT->content .= $ordersPlotT->render(); // Inbox count $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-cart-plus"; $rowT->iconColoredClass = "background-color-4"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = $ecommerce->getOrdersCountByStatus('inbox'); $rowT->caption = l10n('cart_inbox', 'Inbox'); $rowT->margin = true; $boxT->bottom = $rowT->render(); // On hold count $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-hourglass"; $rowT->iconColoredClass = "background-color-3"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = $ecommerce->getOrdersCountByStatus('waiting'); $rowT->caption = l10n('cart_waiting', 'On hold'); $boxT->bottom .= $rowT->render(); // Low stock $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-exclamation-triangle"; $rowT->iconColoredClass = "background-color-2"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = count($ecommerce->getDynamicProductsAlertStatus()); $rowT->caption = l10n('cart_lowstock', 'Low Stock'); $boxT->bottom .= $rowT->render(); } else { // Connection Error $boxT->content .= "DB Connection error"; } $main->content .= $boxT->render(); }

Read more
Posted on the from Bernhard S.
JJ. JUAG
JJ. JUAG
User

Haben Sie ihren Hoster mal gefragt, ob php 7.2 für ihre homepage korrekt funktioniert?

Auch bei captcha im Kontakt wird der php-code angezeigt.

Ich kenne nur, das der php-Code dargestellt wird, wenn dieser auf dem Server nicht ausgeführt wird, sonst gibt es Fehlermeldungen, wenn der Code nicht ok wäre.

Es sollte  in Version 16 von wx5 so aussehen:

JJ.

Read more
Posted on the from JJ. JUAG
Andreas S.
Andreas S.
Moderator

Wenn der Klartext von PHP kommt, dann ist es eindeutig, dass "KEIN" PHP am Server aktiviert ist. Auch wenn der Provider sagt er bietet PHP an, dann ist entweder in deinem Paket kein PHP enthalten oder nicht aktiviert !  Im Programm gibt es nichts zum einstellen. Entweder es ist aktiv geschaltet und es funktioniert oder nicht.

Read more
Posted on the from Andreas S.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Bernhard S.
Wenn ich auf php 7.2 umstelle und den Aufruf www.prosoftgera.de/admin durchführe kommt folgender Code <?php include "includes.php"; // Redirect to a specific section $redirect = Configuration::getControlPanel()->getRedirectFromArray($_GET); ...************...

... in diesem Moment arbeitet...

Read more
Posted on the from  ‪ KolAsim ‪ ‪
Bernhard S.
Bernhard S.
User
Author

Ich habe wieder auf php 5.6 umgestellt, da funktioniert alles.

Read more
Posted on the from Bernhard S.
Bernhard S.
Bernhard S.
User
Author

Es liegt am Provider Euserv, habe das gleiche Objekt bei 1 und 1 eingestellt mit PHP 7.2 und alles funktioniert. Danke für Eure Bemühungen.

Read more
Posted on the from Bernhard S.