View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Importation doesn't work - Page 3 - ProjeQtOr
 
 

Importation doesn't work

More
29 Nov 2012 15:52 #13 by babynus
Very strange. :huh:

Can you try to comment the transaction lines :
Sql::beginTransaction();
and
Sql::commitTransaction();
in this function to see how it goes ?

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
29 Nov 2012 18:16 #14 by jmmbb
Replied by jmmbb on topic Re: Importation doesn't work
It done, here is the result :

Import - Step 1 : initImport - Step 2 - Class existImport - Step 3 - Sql::beginTransaction()


Function stop before CommitTransaction...

Here is the log :

2012-11-29 18:13:53 ..... SCRIPT .... <Serveur> /tool/import.php
2012-11-29 18:13:53 ..... SCRIPT .... <Serveur> ->/tool/import.php
2012-11-29 18:13:53 ..... SCRIPT .... <Serveur> import(../files/attach//import/Testimport.csv, Project)

Please Log in or Create an account to join the conversation.

More
02 Dec 2012 13:16 - 02 Dec 2012 13:19 #15 by babynus
Hi,
I really don't understand why you can't get it work.
I tried on :
- windows / mysql : OK
- linux (debian) / mysql : OK
- linux (debian) / postgresql : OK
Could you precise your test environment :
- php server OS / version
- php version
- db server OS / version
- db used (mysql/postgres) and version

Also, could you also test with joined Importable.php file ?
I added many debug line to track progress of treatment.
For information, I joined the log file that was geznerated with this debug level, with correct treatment of your test file.

Babynus
Administrator of ProjeQtOr web site
Attachments:
Last edit: 02 Dec 2012 13:19 by babynus.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 12:00 #16 by jmmbb
Replied by jmmbb on topic Re: Importation doesn't work
Hello,

PHP : 5.2.3
MySQL : 5.0.77

I'll tried with new version of IMPORTABLE.PHP, log is attached...

Thanks !
Attachments:

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 14:36 - 03 Dec 2012 14:47 #17 by babynus
Hi,

The issue is on these lines :
if (trim($line)=='') {	
				continue;
			}
			if (! mb_detect_encoding($line, 'UTF-8', true) ) {		
				$line=utf8_encode($line);
			}

Can you check mbstring plugin on you php ?
(run joined info.php file)
You should get something like this :

Babynus
Administrator of ProjeQtOr web site
Attachments:
Last edit: 03 Dec 2012 14:47 by babynus.

Please Log in or Create an account to join the conversation.

More
03 Dec 2012 16:01 #18 by jmmbb
Replied by jmmbb on topic Re: Importation doesn't work
Ok, that's the reason.

After enabling mbstring plugin, it works !

Many thanks !

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.044 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.