View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Error when trying to download documents - 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)

 

 

 

[SOLVED] Error when trying to download documents

More
03 Déc 2015 11:26 #1 by louisc
Hello,

When trying to download uploaded documents (PDF files in my case), I don't get anything.
Looking at the logs, I get an error when trying to dowload the PDF file :

2015-12-03 11:13:54.200 ***** ERROR ***** ERROR *****
2015-12-03 11:13:54.200 ***** ERROR ***** on file '/var/www/projeqtor/model/persistence/SqlElement.php' at line (4005)
2015-12-03 11:13:54.200 ***** ERROR ***** cause = is_a() expects exactly 2 parameters, 3 given

I tried for some PDF files uploaded on the project, and got exactly the same error each time.

Looking at the filenames of the different PDF files, there may be a problem due to the file names : the project name is composed of a word starting with the µ character, so this character is present in the name of all PDF files uploaded. Maybe the error is due to the presence of this character in the filenames ?

Thanks for your answer.

Please Connexion or Create an account to join the conversation.

More
03 Déc 2015 12:27 #2 by babynus
It is a issue produced with PHP < 5.3
To have this work for PHP < 5.3, comment lines 4005 to 4007 in /model/persistence/SqlElement.php from
//	  if (! is_a($className, 'SqlElement', true )) {
//	    traceHack("Class '$className' does not extend SqlElement");
//	  }

Note that this mau introduce secuirity leak.
Better solution will be proposed in V5.2.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: louisc

Please Connexion or Create an account to join the conversation.

More
03 Déc 2015 14:18 #3 by louisc
Thank you for your reactivity.

babynus wrote: It is a issue produced with PHP < 5.3

That's strange as php version used is 5.3.3-7

babynus wrote: To have this work for PHP < 5.3, comment lines 4005 to 4007 in /model/persistence/SqlElement.php from

//	  if (! is_a($className, 'SqlElement', true )) {
//	    traceHack("Class '$className' does not extend SqlElement");
//	  }

Note that this mau introduce secuirity leak.
Better solution will be proposed in V5.2.

Thank you, it is working correctly with this patch.
As I am still evaluating the solution (only part of the team is using it currently), the security leak is not that important and I will wait v5.2 to put Projeqtor into real production.

Please Connexion or Create an account to join the conversation.

More
03 Déc 2015 15:10 #4 by babynus
Final patch (will be included in V5.2)
Replace line 4005 in /model/persistence/SqlElement.php from
if (! is_a($className, 'SqlElement', true )) {
to
[code type=php]if (! is_subclass_of ( $className, 'SqlElement')) {
[/code]

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: louisc

Please Connexion or Create an account to join the conversation.

More
03 Déc 2015 17:21 #5 by louisc
This patch works well.

Thank you ! :cheer:

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.039 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.