Jump to content

Script in body da eroare :|


Andrei_

Recommended Posts

Am o problema foarte mare....

Orice script as adauga in header.tpl imi da eroare in sensul ca nu imi mai afiseaza nimic pe pagina, e goala pur si simplu...

Deci am in <head> destinatia catre script-ul principal

In body am :

        

Acasa
Accesorii
Baloane
Aranjamente florale
Fantana de ciocolata
Phones
Printers



tot in body am si scriptul asta care de la el nu-mi mai afiseaza nimic :

        [removed]
           $(function() {
               var d=1000;
               $('#menu span').each(function(){
                   $(this).stop().animate({
                       'top':'-17px'
                   },d+=250);
               });

               $('#menu > li').hover(
               function () {
                   var $this = $(this);
                   $('a',$this).addClass('hover');
                   $('span',$this).stop().animate({'top':'40px'},300).css({'zIndex':'10'});
               },
               function () {
                   var $this = $(this);
                   $('a',$this).removeClass('hover');
                   $('span',$this).stop().animate({'top':'-17px'},800).css({'zIndex':'-1'});
               }
           );
           });
       [removed]



Am incercat si cu alte scripturi si la fel imi face... :|

Link to comment
Share on other sites

Multumesc pentru raspuns, o sa revin si la asta dupa ce termin si cu problema urmatoare....

Nu imi merge formularul de contact. Imi dadea eroarea an error occurred while sending message. Acum, dupa ce am sters si linia aia de cod, imi descrie problema asa : Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\tools\swift\Swift\Plugin\MailSend.php on line 160

160 : if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers, $params);
161 : else $success = mail($to, $subject, $message, $headers);

As mai spune ca mie de la inceput nu mi-a mers asta... la instalerea PrestaShop aveam acolo sa verific daca merge sa se trimita pe adresa de mail si nici atunci nu mergea si bineinteles ca nici acum.

O fi problema ca lucrez pe wamp server ? Eu mi-am mai facut cateva site-uri si mereu am avut probleme cu formularul de contact pe wamp, dar pe host mergea bine...

Astept un raspuns daca stiti. Multumesc.




Nu pot nici sa-l sui pe host :|

In config am asa :

<?php

define('__PS_BASE_URI__', '/');
define('_THEME_NAME_', 'prestashop');
define('_DB_NAME_', 'dreamw_magazin');
define('_DB_SERVER_', 'www.site-ul-meu.org');
define('_DB_USER_', 'dreamw_admin');
define('_DB_PREFIX_', 'dreamw_');
define('_DB_PASSWD_', 'pass');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', 'dkvOdCYSoNcDi0pO0jxAkyWVkx9JEwMIwRNbOhXmca9L7ySe0eRKnnK8');
define('_COOKIE_IV_', 'vbcbUKEF');
define('_PS_VERSION_', '1.3.2.3');

?>



In MySQL Databases am asa :
http://img833.imageshack.us/i/mysqldatabase.png/

In PhpMyAdmin am asa :
http://img442.imageshack.us/i/phpmyadminy.png/

Ce nu e bine ? :|

Eroarea care stau mai mult de un minut sa-mi apara, e :

Titlu : 500 Server error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Link to comment
Share on other sites

Nu ti-e setat serverul de smtp in php.
Deschide php.ini de prin wamp (n-am idee exact unde ti-e, eu folosesc xampp) si cauti [mail function]
Setarile mele, fiind la rds, sunt:

SMTP = mail.rdslink.ro
; http://php.net/smtp-port
smtp_port = 25

Link to comment
Share on other sites

Ok. Multumesc mult pentru raspunsuri, dar cred ca o s-o iau eu de la capat ca deja ma enervez prea rau... Prostia mea ca lucrez ca bou pe wamp in loc sa lucrez direct pe host. Iti dai seama ca problema nu vine numai de la modul offline ci e mai mult de atat. Atat timp cat pe wamp server merge si aici nu, e clar ca sunt mai multe erori si asta cred ca tine si de host. Il iau de la inceput si ce o iesi, o iesi, incerc cu copy-paste prin fisiere, dar nu prea inteleg cum e cu baza de date. Sper sa iasa bine. Multumesc inca o data pentru raspunsuri.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...