We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Runway

Actions after renaming "perch" folder

Hello,

After renaming my "perch" folder to "admin" I applied the change to all runtime calls in the pages, the PERCH_LOGINPATH in config.php and in a couple more places I found /perch/ was hard coded. Now everything works ok but I can't translate the admin area. I'm getting error loading the language txt file Diagnostics in PAGES:

Debug Message
[1] SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='9501ffe2184d19a73f80722569661c70' LIMIT 1
UPDATE perch2_users SET userHash='a6874ceeb601bc4ac49bb9b327d03333' WHERE userID='1'
[76] SELECT p.privKey FROM perch2_user_privileges p
[37] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
Unable to load language file: es-es
[nil] SELECT collectionID, collectionKey, collectionEditRoles FROM perch2_collections WHERE collectionInAppMenu=1 ORDER BY collectionOrder ASC
[nil] SELECT *, REPLACE(pagePath, '/index.php', '') as sortPath FROM perch2_pages WHERE pageNew=1 ORDER BY LENGTH(sortPath)-LENGTH(REPLACE(sortPath, '/', '')) ASC
[12] SELECT p.*, (SELECT COUNT(*) FROM perch2_pages WHERE pageParentID=p.pageID) AS subpages FROM perch2_pages p WHERE p.pageParentID IN (0) ORDER BY p.pageTreePosition ASC
[33] SELECT * FROM perch2_content_regions ORDER BY regionOrder ASC
[1] SELECT * FROM perch2_content_regions WHERE regionPage='*'
[12] SELECT DISTINCT regionTemplate FROM perch2_content_regions ORDER BY regionTemplate ASC
[nil] SELECT * FROM perch2_content_regions WHERE pageID=5 AND regionPage!='*' ORDER BY regionOrder ASC
[nil] SELECT * FROM perch2_content_regions WHERE pageID=14 AND regionPage!='*' ORDER BY regionOrder ASC
[nil] SELECT * FROM perch2_content_regions WHERE pageID=17 AND regionPage!='*' ORDER BY regionOrder ASC
[nil] SELECT * FROM perch2_content_regions WHERE pageID=23 AND regionPage!='*' ORDER BY regionOrder ASC
Queries: 15
Memory: 1.8531

I'm not sure but if I had to bet I'd say it has to do with the perch renaming. Is there any place in the project where '/perch/addons/lang/language.txt' is called? Or any other place to look instead?

Proko Mountrichas

Proko Mountrichas 3 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What were these "couple more places I found /perch/ was hard coded" ? There shouldn't be any instances.

In my code I meant. Sorry for not specifying.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you check the permissions on your file?

I had not but changing to 777 didn't make it :(

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you validated your JSON in the file?

I just did and yes, there was a stupid "I" character breaking the json. Thanks Drew!