Results 1 to 8 of 8
  1. #1
    New Pligger JimLiddle's Avatar
    Joined
    Oct 2006
    Posts
    7

    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

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    in the database in the config table under the $thetemp field. Make sure to delete everything inside templates_c before visiting your site again.

  3. #3
    New Pligger JimLiddle's Avatar
    Joined
    Oct 2006
    Posts
    7
    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

  4. #4
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    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.

  5. #5
    New Pligger JimLiddle's Avatar
    Joined
    Oct 2006
    Posts
    7
    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 ?

  6. #6
    New Pligger JimLiddle's Avatar
    Joined
    Oct 2006
    Posts
    7
    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

  7. #7
    Constant Pligger savant's Avatar
    Joined
    Apr 2006
    Posts
    1,181
    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

  8. #8
    New Pligger JimLiddle's Avatar
    Joined
    Oct 2006
    Posts
    7
    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

  1. Could not open .//libs/lang.conf
    By timbo in forum Questions & Comments
    Replies: 6
    Last Post: 11-23-2008, 05:58 AM
  2. Could not open .//libs/lang.conf
    By janemarcia26 in forum Questions & Comments
    Replies: 1
    Last Post: 08-20-2008, 05:55 AM
  3. Could not open .//libs/lang.conf
    By miggy in forum Questions & Comments
    Replies: 3
    Last Post: 05-21-2008, 03:22 AM
  4. Could not open ./../libs/lang.conf
    By Jason in forum Questions & Comments
    Replies: 7
    Last Post: 01-24-2007, 08:12 AM
  5. Smarty error: unable to read resource: "../libs/lang.conf"
    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
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting