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

mahmood’s picture

This error acour when I use of Farsi language.I think there is same problem for Arabic and Chniis and Japonis languages.
Pleas help me.

pobster’s picture

So 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

mahmood’s picture

When 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

pobster’s picture

Right at the top of the module file you'll see a line like this:

<?php
// $Id$

Can you post the version number please?

Ta

Pobster

mahmood’s picture

<?php
// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $

Best regards

mahmood’s picture

<?php
// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $

Best regards

mahmood’s picture

// $Id: tablemanager.module,v 1.72 2006/10/25 07:31:45 pobster Exp $

Best regards

pobster’s picture

I 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

mahmood’s picture

Hi, 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.

pobster’s picture

I 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

mahmood’s picture

Yes Please see:http://drupal.org/node/85262 for Webform issue.
Best regards
mahmood

pobster’s picture

I'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

mahmood’s picture

Dear 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

pobster’s picture

Status: Active » Fixed

Ah 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

pobster’s picture

Status: Fixed » Closed (fixed)