| Author |
Message |
Picasso
Joined: 14 Oct 2005 Posts: 12
|
|
Errors on "Manage Templates" option |
|
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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
F_o_X

Joined: 17 Dec 2005 Posts: 8 Location: Poland |
|
|
|
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 |
|
 |
Picasso
Joined: 14 Oct 2005 Posts: 12
|
|
|
|
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 |
|
 |
F_o_X

Joined: 17 Dec 2005 Posts: 8 Location: Poland |
|
|
|
I am using the same web server on my home computer
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 |
|
 |
odin
Moderator
Joined: 29 Sep 2005 Posts: 138 Location: Poland |
|
|
|
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 |
|
 |
Picasso
Joined: 14 Oct 2005 Posts: 12
|
|
|
|
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 |
|
 |
odin
Moderator
Joined: 29 Sep 2005 Posts: 138 Location: Poland |
|
|
|
 |  | 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 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 ] 
|
|
| Tue Dec 20, 2005 1:01 pm |
|
 |
nos
Joined: 19 Mar 2006 Posts: 11
|
|
templates.mdu errors when working on templats |
|
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 |
|
 |
zumbuluk
Joined: 26 Sep 2005 Posts: 43
|
|
|
|
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 |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
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 |
|
 |
Falconer
Joined: 01 Feb 2006 Posts: 50
|
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Today I found out that the square brackets are breaking the code.
For example, change this:
 |  | [if-logged]...[/if-logged] = "Only displayed if the viewer is logged in" |
to this:
 |  | if-logged.../if-logged = "Only displayed if the viewer is logged in" |
|
|
| Wed Oct 04, 2006 7:12 pm |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
|
where to change it? in language file .ini u think?
|
|
| Thu Oct 05, 2006 12:01 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Yes, templates.ini.
|
|
| Thu Oct 05, 2006 12:03 am |
|
 |
sempro
Joined: 27 Apr 2006 Posts: 72
|
|
|
| Thu Oct 05, 2006 12:13 am |
|
 |
|