WebSite X5Help Center

 
Claudio P.
Claudio P.
User

Problemi con modulo contatti e pagina /admin  it

Autore: Claudio P.
Visite 634, Followers 1, Condiviso 0  

Ho creato la mia versione provvisoria e caricata tramite FTP sul sito.

Fino a qui nessun problema ma se inserisci i dati nel modulo contattami ed invio, la pagina restituisce una schemata con questo codice:

setField('Nome', @$_POST['imObjectForm_52_1'], '', false); $form->setField('Cognome', @$_POST['imObjectForm_52_2'], '', false); $form->setField('E-mail', @$_POST['imObjectForm_52_3'], '', false); $form->setField('Messaggio', @$_POST['imObjectForm_52_4'], '', false); if(@$_POST['action'] != 'check_answer') { if(!isset($_POST['imJsCheck']) || $_POST['imJsCheck'] != '9AF664096755CDE333DD3B5329B48A33' || (isset($_POST['imSpProt']) && $_POST['imSpProt'] != "")) die(imPrintJsError()); $form->mailToOwner('***', '***', 'Richiesta dal sito', '', false); $form->mailToCustomer('***', $_POST['imObjectForm_52_3'], 'Richiesta inserita sul sito Aristudio Srl', 'Buongiorno, Le confermiamo di aver ricevuto la vostra richiesta tramite il sito web Aristudio Srl. Il nostro staff la contatterà il prima possibile. Cordiali saluti', true); @header('Location: ../index.html'); exit(); } else { echo $form->checkAnswer(@$_POST['id'], @$_POST['answer']) ? 1 : 0; } } // End of file

Se invece cerco di entrare nella pagina /admin quest'altra pagina sempre con codice:

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(); } // --------------- // Blog // --------------- if (isset($imSettings['blog']) && $imSettings['blog']['comments_source'] == 'wsx5') { $blog = Configuration::getBlog(); $comments = $blog->getComments(date("Y-m-d", strtotime("-7 days")) . " 00:00:01", date("Y-m-d") . " 23:59:59", true); $boxT = new Template("templates/dashboard/box.php"); $boxT->title = l10n("blog_title", "Blog"); $boxT->content = ""; $boxT->image = "images/blog_black.png"; // Summary $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-comment"; $rowT->iconColoredClass = "background-color-6"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = count($comments); $rowT->caption = ucfirst(l10n('blog_comments', 'Comments')) . " - " . l10n("admin_lastdays", "Last 7 days"); $boxT->content .= $rowT->render(); // Latest comments $commentT = new Template("templates/dashboard/comment-row.php"); for ($i = 0; $i < count($comments) && $i < 3; $i++) { $commentT->name = $comments[$i]['name']; $commentT->body = $comments[$i]['body']; $commentT->title = $comments[$i]['title']; $commentT->timestamp = $comments[$i]['timestamp']; $boxT->content .= $commentT->render(); } // Count of messages to be validated $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-exclamation-triangle"; $rowT->iconColoredClass = "background-color-3"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = count($blog->getCommentsToValidate("", "")); $rowT->caption = ucfirst(l10n("blog_waiting_approval", "Waiting for approval")); $boxT->bottom = $rowT->render(); $main->content .= $boxT->render(); } // ----------------- // Guestbook // ----------------- if (count($imSettings['guestbooks']) > 0) { $validatedComments = ImGuestbook::getAllComments(date("Y-m-d", strtotime("-7 days")) . " 00:00:01", date("Y-m-d") . " 23:59:59", true); $waitingComments = ImGuestbook::getAllComments("", "", false); $boxT = new Template("templates/dashboard/box.php"); $boxT->title = l10n("admin_guestbook", "Comments and Ratings"); $boxT->content = ""; $boxT->image = "images/guestbook_black.png"; // Summary $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-comment"; $rowT->iconColoredClass = "background-color-6"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = count($validatedComments); $rowT->caption = ucfirst(l10n('guestbook_messages', 'Messages')) . " - " . l10n("admin_lastdays", "Last 7 days"); $boxT->content .= $rowT->render(); // Latest comments $commentT = new Template("templates/dashboard/comment-row.php"); for ($i = 0; $i < count($validatedComments) && $i < 3; $i++) { $commentT->name = $validatedComments[$i]['name']; $commentT->body = $validatedComments[$i]['body']; $commentT->title = $validatedComments[$i]['title']; $commentT->timestamp = $validatedComments[$i]['timestamp']; $boxT->content .= $commentT->render(); } $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-exclamation-triangle"; $rowT->iconColoredClass = "background-color-3"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = count($waitingComments); $rowT->caption = ucfirst(l10n("blog_waiting_approval", "Waiting for approval")); $boxT->bottom = $rowT->render(); $main->content .= $boxT->render(); } // ----------------- // Tests // ----------------- // Results list $results = imAdminTest::testWsx5Configuration(); $list = ""; $count = 0; $testT = new Template("templates/dashboard/test-row.php"); foreach ($results as $result) { if (!$result['success']) { $count++; $testT->name = $result['name']; $list .= $testT->render(); } } if ($count > 0) { $boxT = new Template("templates/dashboard/box.php"); $boxT->title = l10n("admin_test_title", "Website Test"); $boxT->content = ""; $boxT->image = "images/test_black.png"; // Summary $rowT = new Template("templates/dashboard/summary-row.php"); $rowT->icon = "fa-exclamation-triangle"; $rowT->iconColoredClass = "background-color-3"; $rowT->iconEmptyClass = "background-mute"; $rowT->value = $count; $rowT->caption = ucfirst(l10n("admin_test_notpassed", "Not passed")); $boxT->content .= $rowT->render(); // Errors list $boxT->content .= $list; $main->content .= $boxT->render(); } // ---------------------- // Optional Objects boxes // ---------------------- $settings = Configuration::getSettings(); $boxT = new Template("templates/dashboard/box.php"); foreach ($settings['admin']['extra-dashboard'] as $key => $item) { $boxT->title = $item['title']; $boxT->image = "../" . $item['icon']; // Contents ob_start(); include("../" . $item['path']); $boxT->content = ob_get_contents(); ob_end_clean(); // Append the box to the main template $main->content .= $boxT->render(); } echo $main->render();

Ho già verificato che sul mio dominio + hosting business con Register è attiva la funzione PHP (PHP 7,3)

Come posso risolvere?

Postato il
11 RISPOSTE
Fabio C.
Fabio C.
User

Se puoi metti un link per verificare

Leggi di più
Postato il da Fabio C.
Claudio P.
Claudio P.
User
Autore

Ecco link:

www.aristudio.it

Leggi di più
Postato il da Claudio P.
Claudio D.
Claudio D.
Moderator
Utente del mese IT

sul tuo host NON è attivo il PHP

chiedi all'host di attivarlo ... (sarà a pagamento) (Register... cry )

serve almeno la versione 5.6 di PHP (meglio se la 7.x)

Leggi di più
Postato il da Claudio D.
Claudio D.
Claudio D.
Moderator
Utente del mese IT

devi sentire Register ...

quasi sicuramente non è attivo e/o funzionante...

sugli host base Register non dà il PHP con il dominio... ma va pagato in più...

Leggi di più
Postato il da Claudio D.
Claudio P.
Claudio P.
User
Autore

Ho sentito Register spiegando il problema. Loro mi dicono che con dominio Business (ho aggiornato il dominio da quello base) è attivo il PHP ma aprire comunque un ticket di assistenza. Vedremo cosa rispondono 

Leggi di più
Postato il da Claudio P.
Claudio D.
Claudio D.
Moderator
Utente del mese IT

se ti attivano il profilo business col PHP ... dopo funzionerà...

facci sapere...

Leggi di più
Postato il da Claudio D.
Claudio P.
Claudio P.
User
Autore

Attivato il profilo business ma non funziona ancora. La loro assistenza dice che è un problema del software ma onestamente mi sembra strano.

Come posso capire dove sia il problema?

Leggi di più
Postato il da Claudio P.
Claudio D.
Claudio D.
Moderator
Utente del mese IT

insisti con Register ... tieni conto che magari l'attivazione non è immediata , da parte loro...

non è la prima volta che capitano inconvenienti simili con Register ...

ed assicurati che ci sia attiva almeno la 5.6 o meglio la 7.x come versione...

Leggi di più
Postato il da Claudio D.
Claudio P.
Claudio P.
User
Autore

Ci tengo a comunicare che era un problema di Register. Nonostante avessero attivato il dominio Business (nel dominio base non è compreso servizio PHP), il dominio era ancora indirizzato all'hosting base. ora che è stato indirizzato sull'hosting linux business funziona tutto correttamente.

Grazie

Leggi di più
Postato il da Claudio P.
Claudio D.
Claudio D.
Moderator
Utente del mese IT

Grazie per il feedback...

come immaginavo...

Purtroppo non è la prima volta che capita con quel provider...

Chiudi il post con "corretto" (spunta verde sul post che ti ha risolto)

Se hai altri problemi apri un nuovo post...

E buon lavoro !

Leggi di più
Postato il da Claudio D.