Eroare de generate imagine Thumbnail in WordPress

eroare_upload_thumbnail_wordpress

Am mai multe instante de WordPress, inclusiv aceasta. Multitudinea de plug-in-uri si versiuni duc la o “prosteala”, adica folosim fara sa avem nevoie sau folosim fara sa cunoastem. Binenteles ca nu le putem sti pe toate, dar cand ai o eroare, incepi sa sapi sa o elimini, mai ales daca e importanta. In cazu de fata, la incarcarea (upload) unei imagini, generarea de imagine mica (thumbnail) da eroare. In site si in admin (lista imagini din media) nu apare imaginea, in rest, pentru mai multe dimnesiuni, imaginile sunt create pe web server.

Pasii de debug si reparare sunt mai jos.

Eroarea:

Debugging Information
Total Images: 1
Images Resized: 0
Resize Failures: 1

function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&”string”!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this}

Call of http://site-ul.meu/wp-admin/admin-ajax.php with POST data

action=regeneratethumbnail
id=1153

curl “http://site-ul.meu/wp-admin/admin-ajax.php” -H “Host: site-ul.meu” -H “User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0” -H “Accept: */*” -H “Accept-Language: en-US,en;q=0.5” –compressed -H “Referer: http://site-ul.meu/wp-admin/tools.php?page=regenerate-thumbnails&goback=1&_wpnonce=8c7c1fae9e&ids=”%”2C1153” -H “Content-Type: application/x-www-form-urlencoded; charset=UTF-8” -H “X-Requested-With: XMLHttpRequest” -H “Cookie: wordpress_3fce245b6bf704df0ce9ec9d0c0520fa=admin”%”7C1512716551″%”7Ct946kwGOBbTyBMygKhM46w14oDwDrZGzzUEbETX3v9K”%”7C18d8a43acbade7d0993431af46b0e1a3bf6a5b1aafe20d818108867f324bbf28; wp-saving-post=1146-saved; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_3fce245b6bf704df0ce9ec9d0cxxx=admin”%”xxx512716551″%”7CxxxwGOBbTyBMygKhM46w14oDwDrZxxxbETX3v9K”%”7Cb5d5ce5067xxx7b574ed974f3146ddc43ea40888374f649e8413b9047205; PHPSESSID=xxx; wp-settings-1=libraryContent”%”3Dbrowse”%”26align”%”3Dright”%”26urlbutton”%”3Dfile; wp-settings-time-1=1512544822; _ga=GA1.2.1274xxx335.1512544525; _gid=GA1.2.1xxx6614.1512544525” -H “Connection: keep-alive” –data “action=regeneratethumbnail&id=1153”

Reponse is 503 page !!!! (aici e de vina gazduitorul)

<!DOCTYPE html>
<html style=”height:100%”>
<head><title> 503 Service Unavailable
</title></head>
<body style=”color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;”>
<div style=”height:auto; min-height:100%; “> <div style=”text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;”>
<h1 style=”margin:0; font-size:150px; line-height:150px; font-weight:bold;”>503</h1>
<h2 style=”margin-top:20px;font-size: 30px;”>Service Unavailable
</h2>
<p>The server is temporarily busy, try again later!</p>
</div></div><div style=”color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;”>
<br>Proudly powered by <a style=”color:#fff;” href=”http://www.litespeedtech.com/error-page”>LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>


SOLUTIA: Dupa deactivarea woocomerce-ului a mers upload-ul si regenerarea de thumbnail

Idei de reparare, daca totusi vrei sa ai WooCommerce activ:
https://theme.co/apex/forums/topic/changing-size-of-product-image-thumbnail/

Succes

Article by admin

Admin-ul e un fel de shef al site-ului. Se prespune ca stie ce face pe aici si ca ce produce, are o calitatea mai mare decat ce produc altii autori din site. Cred ca e opinia lui, una ce are invidia la baza, detinerea de informatii mai tari si mai multe decat altele detinute de ceilalti.
Pana la urma categoriile din meniu definesc persoana prin domeniile puse acolo si prin scrierile din site. Persoana “Admin” a facut si a dres, are o experienta si poate fi catalogat prin ce stie, face si ce mai spune ca doreste sa faca in viitor. Un indiciu: e unamoid.

Comments: no replies

Join in: leave your comment