Closed (fixed)
Project:
Table Manager
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2006 at 08:25 UTC
Updated:
2 Nov 2006 at 19:35 UTC
I can inistall tablemanager module with Easyphp-8 (php 4.3.10) successfully and it work properly; but ,when I inistall it on Linux server with (php4.4.1+) or (WAMP5,php5+) it installs successfuly but cannot add the tables.
Comments
Comment #1
mahmood commentedThis error acour when I use of Farsi language.I think there is same problem for Arabic and Chniis and Japonis languages.
Pleas help me.
Comment #2
pobster commentedSo uhhh... What happens? Does it create the db tables correctly? Can you tell me *where* it fails and perhaps if there's an error message? I can't 'guess' what's wrong with it...
Pobster
Comment #3
mahmood commentedWhen I inistall it on Linux server with (php4.4.1+) or (WAMP5,php5+), it installs successfuly and create the db tabls (tablemanager , tablemanager_data) correctly, but when I use Persian language and submit the form I see a blank page or encounter with these errors:
warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\modules\tablemanager\tablemanager.module on line 860.
warning: array_push() [function.array-push]: First argument should be an array in C:\wamp\www\mysite\modules\tablemanager\tablemanager.module on line 886.
and
warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\modules\tablemanager\tablemanager.module on line 1135.
Thanks a lot
Comment #4
pobster commentedRight at the top of the module file you'll see a line like this:
Can you post the version number please?
Ta
Pobster
Comment #5
mahmood commented<?php
// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $
Best regards
Comment #6
mahmood commented<?php
// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $
Best regards
Comment #7
mahmood commented// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $
Best regards
Comment #8
pobster commentedI think your header is messed up... Could you post the entry as it is in the database?
...If not... I'm not sure? The line that craps out is to do with the header array, can you go through the steps you need to take to recreate this error (eg. enable module, create table, add entry - this is where it all goes horribly wrong) I need to know as much as I can, as I can't recreate this problem myself.
Pobster
Comment #9
mahmood commentedHi, Deare sir,
Note: before following the below steps, be sure about using php 4.4.1+ or the latest versions.
To create the mentioned errore, in Widowes XP, you should follow these steps:
start--->control panel---->regional languages and options ----> languages(tab)-----> check the first box(install fails for complex script...)----> regional options----> select Farsi(in the slection menu)---->apply
Then, select Farsi(language) for type with keyboard in desktop taskbar, and fill the "table manager form " with Farsi letters (for exampel, type Farsi in Column 1 field and finally submit the form). In this case, the mentiond error occurs.
Comment #10
pobster commentedI should imagine its a Drupal issue then? The problem sounds like an issue with foreign characters (maybe) - can you let me know whether you have any issues with any other similar Drupal modules?
Pobster
Comment #11
mahmood commentedYes Please see:http://drupal.org/node/85262 for Webform issue.
Best regards
mahmood
Comment #12
pobster commentedI'm at a complete loss as to how to fix this issue... The header is whats crapping out, so it stands to reason that's where the issue is - but...
/**
* Validates string
*/
function tablemanager_validatestring($word, $name) {
if (eregi('[^a-z 0-9_-]', $word)) {
form_set_error($name, t('The specified %name contains one or more illegal characters.
Special characters except space, dash (-) and underscore (_) are not allowed.', array('%name' => $name)));
}
return;
} // tablemanager_validatestring
Surely this function will strip out non-English characters? But the thing that's probably causing your issue with the header is check_plain which is a Drupal function and just passes stuff to htmlspecialchars... If that's where your issue is, then I'm afraid it's nothing to do with me - you'll need to post an issue to Drupal core (bootstrap I guess?)
Let me know what you think and if it's my validatestring function - please advise on how I change it to include your character set as I haven't a clue!
Thanks
Pobster
Comment #13
mahmood commentedDear sir;
I inistalled "$Id: tablemanager.install,v 1.17 2006/11/01 16:17:51 pobster Exp $" and`seems the mentiond prablem solved.
I think there is not any problem.
Thank you very much.
Mahmood
Comment #14
pobster commentedAh good, apologies as that error was my fault. I should have left it how it was originally and not bothered tidying it up! I left out a very important part!
Glad it's working now
Pobster
Comment #15
pobster commented