Jump to content

actualizare url imagini dupa mutarea pe server nou


Recommended Posts


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

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

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 by valentin.g (see edit history)
Link to comment
Share on other sites

<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 by Mirchard (see edit history)
Link to comment
Share on other sites

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

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

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...