Go Back   Pligg Forum > Pligg Development > Bug Report
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-14-2007, 11:08 AM
NEC NEC is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 54
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 2 Times in 2 Posts
non-english category names

i created a category äüpligg2 which contains non-english chars:

it saves and shows the name correctly.

categories sidebar correctly shows the category name but url is wrong.

in url strings those chars are not shown. for test category äüpligg, url is shakeit.php?category=pligg2 whereas it should be shakeit.php?category=aupligg2. but when you click on the wrong url it goes to that category.

breadcrumb is incorrectly shown as "Your Location: Pligg beta 9 Home » Unpublished » pligg2".

it seems like non-english chars are truncated everywhere. on top of every page following error comes up regardless of which page you're going:

Warning: Invalid argument supplied for foreach() in /home/andre/www/pligg/libs/html1.php on line 136.

p.s: i dont what i did but now i cannot save a new category with non-english chars in. it shows the above error on inline edit.



i'm not sure if this is bug, but, if you set "Show the URL input box" as false then this error comes up while submitting a story. when you change back everything is normal.

URL is invalid or blocked: (http://)

try again




test config: local linux machine with php 4.4.4 and mysql 4.1.12.
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 02-15-2007, 08:43 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
I think Savant may have fixed this http://pligg.svn.sourceforge.net/vie...v&revision=712
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #3 (permalink)  
Old 02-16-2007, 03:46 AM
NEC NEC is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 54
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 2 Times in 2 Posts
when i upgrade latest revision page only shows this and nothing else:
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/andre/www/pligg/libs/utils.php on line 267

also i'm constantly getting Warning: Invalid argument supplied for foreach() in /home/andre/www/pligg/libs/html1.php on line 136 error on top of non-admin published/unpublished and admin category management pages but it seems to work and i dont get it.
Reply With Quote
  #4 (permalink)  
Old 02-16-2007, 04:43 AM
savant's Avatar
savant savant is offline
Pligg Koder
 
Join Date: Apr 2006
Location: UK
Posts: 1,234
Downloads: 7
Uploads: 0
Thanks: 66
Thanked 210 Times in 151 Posts
hmm i didn't touch that part. I'll look into it.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #5 (permalink)  
Old 02-16-2007, 05:18 AM
NEC NEC is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 54
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 2 Times in 2 Posts
Savant please look also at Invalid argument supplied for foreach() error on html1.php
Reply With Quote
  #6 (permalink)  
Old 02-16-2007, 07:05 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
Don't copy the entire file when you see a bugfix. Click on "text changed" to see the exact code that was changed. You may have copied over code that's not compatible with your version.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #7 (permalink)  
Old 02-16-2007, 08:08 AM
NEC NEC is offline
Casual Pligger
 
Join Date: Jan 2007
Posts: 54
Downloads: 7
Uploads: 0
Thanks: 1
Thanked 2 Times in 2 Posts
i'm using the latest 702 release.

for the category thing: i think problem is (responsible part of the) script does not look at the utils.php for char conversion. it just strips out the non-english chars and then write to category safe name column. in other words:

original name - category_name column - category_safe_name column

äüpligg2 - äüpligg2 - pligg2


the problem of foreach() is related to something else i think. when i did fresh install this error were not there. after i started testing then it began to appear. my theory on this is that foreach() loop thinks incorrectly that categories array is empty because of non-english category names even if you have deleted them.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fixed] Click "read more" the category links screw up mlbier General Help 12 02-15-2007 12:32 PM
new category code - improvements? cruci Pligg Mods 4 01-06-2007 12:35 PM
Category names with 's produce mysql error ecow Bug Report 1 01-01-2007 07:59 PM
8.2 Category names in Sidebar using UTF-8 skara Bug Report 4 10-29-2006 12:41 AM
7.1 Bug Report: Category names with space or underscore Linlay Bug Report 1 04-30-2006 10:35 AM


LinkBacks Enabled by vBSEO 3.0.0