Go Back   Pligg CMS Forum > Pligg Help > Installation and Upgrade Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2007, 12:50 PM
New Pligger
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Problem upgrading with templates and lang

Hello!

I love pligg and this rating system. So I created a website with pligg 8 beta and modified the template quite a bit. (http://www.avtonovice.si)

Now, because of some advanced functionality from pligg beta 9 I decided to upgrade my site.

I followed all the instructions for the update but I have 2 problems.

First one is with my template. My first thing was to copy all the beta 9 over beta 8 (+modifications) files. I renamed my old template (extremis) to extremisOLD and then renamed digitalnature to extremis. And at a first glance everuthing worked fine... my news displayed ok.

If I wanted all the modifications to work in my new version I had to copy all the files from extremisOLD to extremis (previously known as digitalnature)

I got an error with the proper path to my lang.conf file, so I changed all entries with ../libs/lang.conf to /libs/lang.conf and it worked

But then I got this first problem I cannot solve:
the header renders ok but I am getting an error in my side menu...right after the rss.tpl...

Quote:
Fatal error: TPL: [in line 0]: syntax error: file '.tpl' does not exist in f:\root\carindustry\pligg\class.template.php on line 898


and of course no news are displayed..... so, I don't get it... all the new files should be there from the diginature templates I just overwritten some of the new ones with my old template...

Now to the second problem...
I think that the PLIGG team should mention in the upgrading instructions to backup the lang.conf file... obviously I've made the translation to my language... and when I've copied the new files over, the translations were lost...

but fortunately I make always backups before makeing this kind of things (and obviously I am testing all offline before upgrading the real site)... so I copied the old lang.conf file over the new one...

but obviously, the new one had some new entries that the old one doesn't have :)
so I will make the appropriate changes with winmerge

I just wanted to point out the problem so that the PLIGG team should warn the users... because I read one post presumably from the pligg team

Quote:
Originally Posted by kbeeveer46 View Post
There really isn't any bugs regarding the upgrade. If you follow the instructions carefullly it should work just fine. The reason some ppl may be having problems is because of certain php/mysql versions or even things on their server that causes issues. There's no way for us to be able to test Pligg on the thousands of hosting providers and all the php versions available.
Reply With Quote
  #2 (permalink)  
Old 02-27-2007, 02:44 PM
New Pligger
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I'm In a Similar Situation

I also made major changes to the 8.2 install base with my template changes. I'm in the midst of upgrading (using a sandboxed copy of my site) and I'm getting an error with the lang.conf file. Is this what you had a problem with?

The error reads:
Quote:
"Warning: file_get_contents(./../libs/lang.conf) [function.file-get-contents]: failed to open stream: No such file or directory in /home/bizzbites/site/www/class.config.php on line 49
Could not open ./../libs/lang.conf"
I'm trying to upgrade from 8.2 to 9.1. I applied chmod 777 to all files, so it's not a permission issue.

Did you search and replace all occurrences of ../lang.conf in all the pligg files with lang.conf? I guess I could do that. But why should that be necessary?


UPDATE:
I replaced all references to "../libs/lang.conf" in my template files with "libs/lang.conf". That worked, but my template needs other tweaks to work fully with 9.1's new features.

Last edited by JeffreyD; 02-27-2007 at 07:45 PM.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Search Engine Friendly URLs by vBSEO 3.2.0