Cherry Universe.
home resources tutorials about themes order
X Cpmfetch hibaüzenet javítása X

Amikor a Cpmfetch-et az install.php aloldalon megpróbáljuk telepíteni, akkor bizonyos esetekben előfordulhat, hogy nem lesz sikeres a telepítés, és egy hibaüzenet jelenik meg a legutóbbi képek helyén. Ilyenkor nem kell megijedni, ugyanis ezt könnyedén ki lehet javítani néhány sor átírásával a Cpmfetch telepítő fájljában. A következőkben a hiba megszüntetésére vonatkozó megoldást találhatjátok meg.

Hibaüzenet:

SELECT p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating, p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb, u.user_lastvisit AS uUser_lastvisit,u.user_regdate AS uUser_regdate,u.user_email AS uUser_email,u.user_profile1 AS uUser_profile1,u.user_profile2 AS uUser_profile2,u.user_profile3 AS uUser_profile3,u.user_profile4 AS uUser_profile4,u.user_profile5 AS uUser_profile5,u.user_profile6 AS uUser_profile6, a.aid AS aAid, a.title AS aTitle, a.description AS aDescription, a.visibility as aVisibility, a.pos as aPos, a.category as aCategory, a.thumb as aThumb, a.keyword as aKeyword FROM cpgpn_pictures AS p LEFT JOIN cpgpn_users AS u ON p.owner_id = u.user_id LEFT JOIN cpgpn_albums AS a ON p.aid = a.aid LEFT JOIN cpgpn_categories AS c ON a.category = c.cid WHERE 1 AND p.approved='YES' AND ((a.visibility = 0 OR a.visibility IS NULL) AND (a.alb_password IS NULL OR a.alb_password = "")) ORDER BY p.ctime DESC LIMIT 0,4

Megoldás:

Töltsd le a galéria mappájába feltöltött Cpmfetch mappából az Install.php fájlt, majd nyisd meg egy kód szerkesztő programmal (például Notepad ++). A 61. sor környékén az alábbi kódot keresd meg benne:

'cfSQLPictureSelect' => 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_name AS pOwner_name, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb',

Ezután töröld ki, és cseréld ki erre:

'cfSQLPictureSelect' => 'p.filepath AS pFilepath, p.filename AS pFilename, p.aid AS pAid, p.filesize AS pFilesize, p.title AS pTitle, p.caption AS pCaption, p.owner_id as pOwnerId, p.ctime AS pCtime, p.hits AS pHits, p.pid AS pPid, p.pic_rating AS pPic_Rating,  p.votes AS pVotes, p.pwidth AS pWidth, p.pheight AS pHeight, p.user1 as pUser1, p.user2 as pUser2, p.user3 as pUser3, p.user4 as pUser4, c.cid as cCid, c.name as cName, c.description as cDescription, c.pos as cPos, c.parent as cParent, c.thumb as cThumb',

Ha nem ezt a hibaüzenetet kapod a telepítés futtatása után, akkor írj egy emailt a címemre, screenshotold le a hibaüzenetet, illetve másold is bele a szöveget a levélbe, és úgy küldd el nekem. Többféle hibaüzenet is megjelenhet, így ne ijedj meg, a legtöbb helyzetre van megoldás.


x Írj hozzászólást a bejegyzéshez x




Hozzászólásod csak spam ellenőrzés után fog megjelenni.

Ellenőrző kód *