View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Undefined variable in "importable.php" - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Undefined variable in "importable.php"

More
14 Oct 2013 15:17 #1 by caccia
Hi again,

I encountered an "undefined variable" error while attempting to import a CSV file.
In file importable.php, the variable $line is initialized within an if() clause (around line 225):
if (count($fields) > count($title)) {
   $line="";
   foreach($fields as $field){
      $line.=$field." ;; ";
   ...

Below this, $line is used outside of this if() clause (l.243):
          $htmlResult.= $line;
          $htmlResult.= '</td>';

I guess $line should be at least initialized outside of the if().

Note: encountered this when using one CSV file to import Actions, where:
- first few lines were updating status of existing actions
- then some lines to create new actions (ID field empty)

Please Connexion or Create an account to join the conversation.

More
16 Oct 2013 12:53 #2 by babynus
Hi,

Ticket #1202 recorded to fix this issue.

For information :
- the proposed fix is not complete, not only $line must be initizalized, but also completed (including the foreach loop)
- you face this issue because your import file contains no numeric data for id. I guess you entered some spaces for blank ids, and this led to the issue. I then also added fix to remove spaced from id...

Thanks for reporting.
Babynus

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

More
16 Oct 2013 16:53 #3 by caccia
Thanks for the information - on the file and on the fix ! :)
I knew it was caused by a problem on the file, but wasn't sure what exactly...

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.037 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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