Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Errors on "Manage Templates" option
Goto page 1, 2, 3  Next
 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Errors on "Manage Templates" option
Author Message
Picasso



Joined: 14 Oct 2005
Posts: 12

Post Errors on "Manage Templates" option Reply with quote
As soon as I enter the Templates section, this appears at the top.



Warning: Error parsing ..\news/inc/lang/en/templates.ini on line 48 in ..\news\inc\functions.inc.php on line 778 [full directory reference removed by me]



The various templates each show errors referring to the ...\inc\mod\templates.mdu file. For example the Pagination template shows,



Warning: ksort() expects parameter 1 to be array, null given in ...\news\inc\mod\templates.mdu on line 291



Warning: reset() [function.reset]: Passed variable is not an array or object in ...\news\inc\mod\templates.mdu on line 292



Warning: Invalid argument supplied for foreach() in ...\news\inc\mod\templates.mdu on line 298



Any ideas?
Mon Dec 19, 2005 10:13 pm View user's profile Send private message
Guest








Please login to hide the ads.

F_o_X



Joined: 17 Dec 2005
Posts: 8
Location: Poland

Post Reply with quote
This problem is only on Windows servers (I have tested it with Apache server). On Linux there is no problem with it.



I have no idea why this doesn't show...
Mon Dec 19, 2005 11:03 pm View user's profile Send private message Send e-mail Visit poster's website
Picasso



Joined: 14 Oct 2005
Posts: 12

Post Reply with quote
Thanks for the reply. That explains it.



I have been using Cutenews on my PC using Xampp (http://www.apachefriends.org/en/xampp.html) as a test server. This runs Apache etc on Windows. This was where I was getting the problem.



I tried it with my host (linux) and it works OK.



Before version 2.5, I used 2.3.3, and it worked with both.



The only other difference; Xampp uses PHP5, my host uses PHP4.
Mon Dec 19, 2005 11:35 pm View user's profile Send private message
F_o_X



Joined: 17 Dec 2005
Posts: 8
Location: Poland

Post Reply with quote
I am using the same web server on my home computer Very Happy



I have the same problems. And as well older versions of CuteRU was working on windows and linux and php4 and php5.



So it have to be problem of script only...
Tue Dec 20, 2005 12:13 am View user's profile Send private message Send e-mail Visit poster's website
odin
Moderator


Joined: 29 Sep 2005
Posts: 138
Location: Poland

Post Reply with quote
Easy-php. This is server that I can recommend. It is really fast and cute don't have any problems with =)
Tue Dec 20, 2005 12:23 am View user's profile Send private message MSN Messenger
Picasso



Joined: 14 Oct 2005
Posts: 12

Post Reply with quote
Fox, I think the problem might be PHP5, at least with Xampp.



I normally use Xampplite with PHP5. After your last message I went back to their site and downloaded the full version - it allows you to switch easily between PHP4 & 5.



With PHP5 - errors. With PHP4 - none



Odin, I like Xampp because I can run it from a USB stick, ie no registry entries. Maybe EasyPhp can run the same way. I notice that it is including PHP5. Do you use the PHP4 or 5 version?
Tue Dec 20, 2005 1:29 am View user's profile Send private message
odin
Moderator


Joined: 29 Sep 2005
Posts: 138
Location: Poland

Post Reply with quote
Picasso wrote:
Fox, I think the problem might be PHP5, at least with Xampp.



I normally use Xampplite with PHP5. After your last message I went back to their site and downloaded the full version - it allows you to switch easily between PHP4 & 5.



With PHP5 - errors. With PHP4 - none



Odin, I like Xampp because I can run it from a USB stick, ie no registry entries. Maybe EasyPhp can run the same way. I notice that it is including PHP5. Do you use the PHP4 or 5 version?




You can start it from PAN that is what I've checked before I wrote this. But you can't switch from one php version to other. So You are propably right: Xampp is better than easy-PHP, but you can always try to search for it with PHP4. So I found it Smile http://www.easyphp.org/telechargements/dn.php?F=easyphp1-7 . Apache 1.3.27 - PHP 4.3.3 - MySQL 4.0.15 - PhpMyAdmin 2.5.3.

Just hover the image next to txt [ detail ] Smile
Tue Dec 20, 2005 1:01 pm View user's profile Send private message MSN Messenger
nos



Joined: 19 Mar 2006
Posts: 11

Post templates.mdu errors when working on templats Reply with quote
Warning: ksort() expects parameter 1 to be array, null given in /homepages/28/d31163190/htdocs/VipS/inc/mod/templates.mdu on line 231



Warning: reset(): Passed variable is not an array or object in /homepages/28/d31163190/htdocs/VipS/inc/mod/templates.mdu on line 232



Warning: Invalid argument supplied for foreach() in /homepages/28/d31163190/htdocs/VipS/inc/mod/templates.mdu on line 238



--- Auf dem host Server l?uft die PHP-Version 4.4.2 ---



what can I do? they appear when calling commnts, paging, comments paging and date header in various lines.
Sun Mar 19, 2006 7:55 pm View user's profile Send private message
zumbuluk



Joined: 26 Sep 2005
Posts: 43

Post Reply with quote
Hi guys, I get the same thing:



Warning: Error parsing /.../mynews/inc/lang/cro/templates.ini on line 48 in /.../mynews/inc/functions.inc.php on line 778



I can't change my server. Isn't there a fix for this?
Sat Jun 17, 2006 10:54 am View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
same error here :/



Warning: Error parsing /opt/apache/htdocs/jppersonal/www/cnr/inc/lang/en/templates.ini on line 33 in /opt/apache/htdocs/jppersonal/www/cnr/inc/functions.inc.php on line 778



:/


Last edited by sempro on Tue Oct 03, 2006 11:57 am; edited 2 times in total
Sun Oct 01, 2006 12:28 pm View user's profile Send private message
Falconer



Joined: 01 Feb 2006
Posts: 50

Post Reply with quote
I have a similar one too. My site was moved to a new server, this one has PHP5 on it while the old one has PHP4. (I'm sure there are other differences as well)



"Warning: Error parsing /home/sergio/public_html/news/inc/lang/en/templates.ini on line 33 in /home/sergio/public_html/news/inc/functions.inc.php on line 778"



No fix for this?
Tue Oct 03, 2006 7:17 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Today I found out that the square brackets are breaking the code.



For example, change this:

Code:
[if-logged]...[/if-logged] = "Only displayed if the viewer is logged in"




to this:

Code:
if-logged.../if-logged = "Only displayed if the viewer is logged in"

Wed Oct 04, 2006 7:12 pm View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
where to change it? in language file .ini u think?
Thu Oct 05, 2006 12:01 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Yes, templates.ini.
Thu Oct 05, 2006 12:03 am View user's profile Send private message
sempro



Joined: 27 Apr 2006
Posts: 72

Post Reply with quote
hehe let me try thx Smile
Thu Oct 05, 2006 12:13 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.