Mirchard Posted May 15, 2012 Share Posted May 15, 2012 Salut, Am mutat prestashop de pe local server pe un hosting gratuit, am urmarit pas cu pas tutorialul si totusi m-am lovit de o problema/bug, nu stiu cum sa o numesc...Toate bune si frumoase, insa uploader-ul pentru imagini din text editor nu mai functioneaza si nici imaginile din text editor pe partea de FO, apar ca broken url img (isi pastreaza link-ul vechi, catre "localhost/"). Precizez ca am regenerat/mutat imaginile in BO, am regenerat htacces, am setat 777 file permision, am sters toate cookies din browser. Astept un raspuns urgent... Multumesc anticipat! Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 ce apare la Preferences - SEO&URL in Shop domain name ? Link to comment Share on other sites More sharing options...
costi43 Posted May 15, 2012 Share Posted May 15, 2012 vezi sa ai aceasi baza de date Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 la shop domain am adresa site-ului... mpcshop.x-o.ro am aceeasi baza de date deoarece am facut import de pe local inca ceva...am depistat zona problemei, cred...in ajaxfilemanager, in errors_log, am gasit urmatoarea eroare: [15-May-2012 13:56:35] PHP Warning: realpath() [<a href='function.realpath'>function.realpath</a>]: open_basedir restriction in effect. File(/usr/local/apache/htdocs) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u434847839/public_html/mshop/ajaxfilemanager/inc/function.base.php on line 457 [15-May-2012 13:56:35] PHP Warning: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(/usr/local/apache/htdocs) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/u434847839/public_html/mshop/ajaxfilemanager/inc/function.base.php on line 443 Link to comment Share on other sites More sharing options...
costi43 Posted May 15, 2012 Share Posted May 15, 2012 (edited) vezi .htacces ai cumva teamviewer, hai pe yahoo, costi4066 Edited May 15, 2012 by costi43 (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 (edited) deschide cu phpmyadmin baza de date si intra in tabela ps_product_lang trebuie sa scoti cu SQL toate referintele la "http://localhost/prestashop/" care apar in campul description acum pozele tale apar OK pe site dupa ce ai facut treaba asta deschide ajaxfilemanager/inc/config.tinymce.php si modifica acolo define('CONFIG_SYS_DEFAULT_PATH', '../../img/cms'); //accept relative path only define('CONFIG_SYS_ROOT_PATH', '../../img/cms'); //accept relative path only de acum toate pozele pe care le pui in description vor trebui sa fie relative: img/cms/poza.jpg Edited May 15, 2012 by valentin.g (see edit history) Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) referintele...le scot pur si simplu sau le inlocuiesc cu url-ul catre pozele de pe host-ul meu? Edited May 15, 2012 by Mirchard (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 ia cauta asa select * from ms_product_lang where description like '%http://localhost/prestashop/%' Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) MySQL a dat un set de rezultate gol (zero linii). ( comanda a durat 0.0001 sec ) Ideea e ca am gasit unde trebuie sa modific url, insa , sa fac asa pentru fiecare produs...mi-ar lua o vesnicie Edited May 15, 2012 by Mirchard (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 SELECT description FROM `ms_product_lang` WHERE `id_product`=1 and id_lang=6 si rezultattul din description afiseaza-l aici Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) <p><strong><span style="font-size: small;">Curved ahead of the curve.</span></strong></p> <p>For those about to rock, we give you nine amazing colors. But that's only part of the story. Feel the curved, all-aluminum and glass design and you won't want to put iPod nano down.</p> <p><strong><span style="font-size: small;">Great looks. And brains, too.</span></strong></p> <p>The new Genius feature turns iPod nano into your own highly intelligent, personal DJ. It creates playlists by finding songs in your library that go great together.</p> <p><strong><span style="font-size: small;">Made to move with your moves.</span></strong></p> <p>The accelerometer comes to iPod nano. Give it a shake to shuffle your music. Turn it sideways to view Cover Flow. And play games designed with your moves in mind.</p> si aici e o descriere al unuia din produsele mele: <p><strong>Usor de transportat. Functioneaza oriunde</strong></p> <p><strong><img src="http://localhost/prestashop/img/cms/SVY_1.jpg" alt="" width="504" height="164" /></strong></p> <p><strong><strong>Durata mare de utilizare a bateriei</strong></strong></p> <p>Procesorul eficient si panoul LCD maximizeaza durata de viata a bateriei pentru utilizarea notebookului pe tot parcursul zilei. Lucrati sau jucati jocuri pana la 6,5 ore, fara a folosi cabluri, cu bateria furnizata cu 6 celule – ideal cand va deplasati intre intalniri sau intr-o calatorie de afaceri.</p> Edited May 15, 2012 by Mirchard (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 scuze incearca din nou: SELECT description FROM `ms_product_lang` WHERE `id_product`=96 and id_lang=6 Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 Ce fac? Modific img src la toate produsele, manual, cu url-ul catre host-ul actual (mpcshop.x-o.ro/) ? Sau ai o solutie mai buna...mai rapida? scuze incearca din nou: SELECT description FROM `ms_product_lang` WHERE `id_product`=96 and id_lang=6 0 results Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 UPDATE ms_product_lang SET description= replace(description,'http://localhost/prestashop/',''); Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 UPDATE ms_product_lang SET description= replace(description,'http://localhost/prestashop/',''); a mers, insa ar fi si mai bine daca as putea inlocui http://localhost/prestashop/ cu http://mpcshop.x-o.ro/ chestia asta nu a facut decat sa-mi stearga http://localhost/prestashop din img src link si sa ramana doar "/img/blabla.jpg" Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 pai asa e cel mai bine sa fie o cale relativa ca sa o poti muta oricand de pe un server pe altul. cand modifici sau adaugi poze pastreaza aceiasi cale: img/cms/poza.jpg Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) Ok...am modificat si ce ai zis mai sus in config.tinymce.php si tot nu imi apar pozele (acum apar cu question mark)...si nici in BO nu pot uploada poze de pe pc. Edited May 15, 2012 by Mirchard (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 1. copiezi pozele in img/cms 2. din editor selectezi poze click icon ca sa localizezi poza , select, apoi insert si save daca ai facut asa si nu merge spune-mi la ce produs ai adaugat sa vad si eu rezultatul Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 (edited) selectez poza, dau select si imi apare cu semnul intrebarii din cauza url-ului http://mpcshop.x-o.ro/home/u434847839/public_html/img/cms/1.jpg ce am pus cu bold e in plus, trebuie sa fac cumva sa dispara, daca sterg alea, imi apare ok poza Edited May 15, 2012 by Mirchard (see edit history) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 pai da .. selectezi poza .. apoi stergi url sa fie in forma img/cms/poza.jpg si salvezi Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 deci nicio sansa sa-l fac sa functioneze implicit, cum era inainte pe local...iar cu baza de date tot nu mi-ai zis cum adaug path-ul de la server la toate descrierile (mpcshop.xo.ro/img/cms/), ca imi apar pozele cu semnul intrebarii pe site (http://mpcshop.x-o.ro/ro/monitoare-lcdled/26-monitor-led-lg-185-e1911s-bn.html) Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 am facut o greseala de aia erai asa nemultumit tu, incearca iar UPDATE ms_product_lang SET description= replace(description,'img/cms/','/img/cms/') Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 Am iesit sa mananc...ajung in max o ora acasa si o sa modific. Ms mult de ajutor Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 Am incercat acum ,dupa telefon UPDATE ps_product_lang SET description= replace(description,'/img/cms/','/img/cms/') Sql error 1064... Nu merge Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 in cazul tau este ms_product_lang UPDATE ms_product_lang SET description= replace(description,'/img/cms/','/img/cms/') Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 Precizez ca am si ms_product_lang si ps_product_lang in DB. Am incercat la ambele sintaxa sql si aceeasi eroare... Link to comment Share on other sites More sharing options...
valentin.g Posted May 15, 2012 Share Posted May 15, 2012 in config/settings.inc.php ce apare la DB_PREFIX ? ps sau ms ? define('_DB_PREFIX_', 'ps_'); in funcie de raspuns incearca iar ideschide baza de date si apoi in SQL UPDATE ms_product_lang SET description = replace(description,"img/cms/", "/img/cms/") Link to comment Share on other sites More sharing options...
Mirchard Posted May 15, 2012 Author Share Posted May 15, 2012 am reusit, merge, insa nu pentru toate produsele...unele inca apar cu broken url img, am sa le modific manual...ms mult de ajutor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now