Unable to correct "could not open ./../libs/lang.conf" error in Pligg 9.0
-
New Pligger
Unable to correct "could not open ./../libs/lang.conf" error in Pligg 9.0
I made a mistake and tried to change the template to a custom template on an upgraded Pligg 9.0 installation and now I get the "Could not open ./../libs/lang.conf" error as I believe the relative path has change in Pligg 9.0 compared to Pligg 8.2.
I went to change this back in Config2.php (as I could not get into the Admin Panel) using "$thetemp =" setting, but strangely this seems to have no effect. Does Pligg 9.0 store the template setting somewhere else ?
Thanks,
Jim
-
Pligg Developer/Admin
in the database in the config table under the $thetemp field. Make sure to delete everything inside templates_c before visiting your site again.
-
New Pligger
Thanks for the quick reply, but this did not solve the issue. I changed the config2.php, $thetemp variable back to paul01 as below:
$thetemp = 'paul01';
and renamed templates_c to template_c_old, creating a new directory 'template_c' with CHMOD 777.
After launching the site the following templates were created in template_c:
c_4a36bd450be2da7d55b526fb7b4fbced.php
c_998f3eae99af1acf163ea023409f03f1.php
c_aff1fcf2eb6569309150d185a6ac7547.php
c_ef20b2b5fff08f636a080a9108ff9329.php
I got the same message though, namely "Could not open ./../libs/lang.conf".
I have to say I am a little stumped at this point. I would have thought that recovering from a template problem would be relatively straight forward.
Any further help given would be much appreciated.
Thanks in advance,
Jim
-
Pligg Developer/Admin
I don't think the template is your problem. I think the files underneath your template is causing problems. In your tpl files it should read /libs/lang.conf and not ./../libs/lang.conf. You may have to make that change to the tpl files in your /templates/yourtemplate/ directory.
-
New Pligger
Yes, I figured this is what I would have to do if I was staying with the old custom template, *but* if I have changed 'thetemp' variable in Config2.php back to 'paulo1', which was working prior to making the template change in the admin panel, surely there should be no need to do this ?
-
New Pligger
Ok, I fixed this but, still have some questions....
To fix this, I had to:
1. Do a mass replace of all the TPL files in my base custom directory from "./../libs/lang.conf" to "/libs/lang.conf"
2. Delete all files in template_c
3. Change the template name in the configure site admin panel back to "paul01"
4. All done - site back
however, just changing the template name back in the "$thetemp" variable in config2.php did not work, which has always worked for me on 8.2 Pligg so there is obviously something different here which I would appreciate someone letting me know if they have the answer.
Cheers,
Jim
-
Constant Pligger
In pligg 9, it stores the config in the database. so you can change the value there.
Another place it can store is your cookies. so delete you cookie for the site. and try again
-
New Pligger
where in the DB ? It was mentioned earlier that there was a temp field in the config directory, but I don't have this field on my upgraded Pligg 9.0 installation, which is now working fine.
Thanks,
Jim
Similar Threads
-
By timbo in forum Questions & Comments
Replies: 6
Last Post: 11-23-2008, 05:58 AM
-
By janemarcia26 in forum Questions & Comments
Replies: 1
Last Post: 08-20-2008, 05:55 AM
-
By miggy in forum Questions & Comments
Replies: 3
Last Post: 05-21-2008, 03:22 AM
-
By Jason in forum Questions & Comments
Replies: 7
Last Post: 01-24-2007, 08:12 AM
-
By SpeedyTV.com in forum Questions & Comments
Replies: 12
Last Post: 09-16-2006, 06:00 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules