Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Error External Shor...
 
Notifications
Clear all

Error External Shortcut

20 Posts
3 Users
0 Reactions
14 K Views
(@durou-c)
Posts: 468
Contributor
Topic starter
 
[#2305]

I have a problem with a external shortcut link,
this what I have in the log file:

2015-05-04 09:08:15 ** ERROR ** ERROR **
2015-05-04 09:08:15
** ERROR ** on file '/var/www/projeqtor/tool/saveAttachement.php' at line (199)
2015-05-04 09:08:15
** ERROR ***** cause = Illegal string offset 'name'


 
Posted : 04 May 2015 11H11
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Please comment all debugLog() calls in /tool/saveAttachement.php (including the one on line 199 which raises the error).
Issue is fixed on V5.0.


 
Posted : 06 May 2015 21H56
(@durou-c)
Posts: 468
Contributor
Topic starter
 

Lign 193 to 214 of saveattachement.php:

debugLog(" paramètres récupérés");
$result="";
$user=$_SESSION['user'];
Sql::beginTransaction();
$attachement=new Attachement();
foreach ($uploadedFileArray as $uploadedFile) {
debugLog(" traitement fichier ".$uploadedFile['name']);
$attachement=new Attachement();
if (! $error) {
if ($refType=="Resource") {
// To avoid dupplicate image (if 2 users save picture on same time)
$attachement->purge("refType='Resource' and refId=".$refId);
}
$attachement->refId=$refId;
$attachement->refType=$refType;
$attachement->idUser=$user->id;
$ress=new Resource($user->id);
$attachement->idTeam=$ress->idTeam;
if ($idPrivacy) {
$attachement->idPrivacy=$idPrivacy;
} else if (! $attachement->idPrivacy) {
$attachement->idPrivacy=1;


 
Posted : 02 Jun 2015 13H45
(@babynus)
Posts: 14952
Member Admin
 

You'll find attached fixed file.


 
Posted : 02 Jun 2015 14H12
(@durou-c)
Posts: 468
Contributor
Topic starter
 

error again ...
and no error on the log file:

2015-06-02 08:33:54 ===== TRACE ===== NEW CONNECTED USER 'DEP'
2015-06-02 08:41:05 ===== TRACE ===== DISCONNECTED USER 'DEP'
2015-06-02 08:46:33 ===== TRACE ===== NEW CONNECTED USER 'LTA'
2015-06-02 08:59:30 ===== TRACE ===== NEW CONNECTED USER 'DEP'
2015-06-02 09:55:17 ===== TRACE ===== NEW CONNECTED USER 'CHD'
2015-06-02 12:07:38 ===== TRACE ===== NEW CONNECTED USER 'BEG'
2015-06-02 12:16:23 ===== TRACE ===== DISCONNECTED USER 'BEG'
2015-06-02 12:16:28 ===== TRACE ===== NEW CONNECTED USER 'BEG'
2015-06-02 12:18:26 ===== TRACE ===== DISCONNECTED USER 'BEG'
2015-06-02 12:30:19 ===== TRACE ===== DISCONNECTED USER 'DEP'
2015-06-02 12:30:23 ===== TRACE ===== NEW CONNECTED USER 'DEP'
2015-06-02 12:35:53 ===== TRACE ===== DISCONNECTED USER 'DEP'
2015-06-02 12:38:41 ===== TRACE ===== NEW CONNECTED USER 'DEP'


 
Posted : 02 Jun 2015 14H41
(@babynus)
Posts: 14952
Member Admin
 

Check for error in browser console


 
Posted : 02 Jun 2015 15H21
(@durou-c)
Posts: 468
Contributor
Topic starter
 

where is browser console ?

look the screen shot linked


 
Posted : 02 Jun 2015 15H51
(@babynus)
Posts: 14952
Member Admin
 

Which browser are you using ?


 
Posted : 02 Jun 2015 15H58
(@durou-c)
Posts: 468
Contributor
Topic starter
 

firefox


 
Posted : 02 Jun 2015 16H22
(@durou-c)
Posts: 468
Contributor
Topic starter
 

message on error browser:

"Error parsing server result:" SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Trace de la pile :
.cache["dojox/form/uploader/_HTML5"]/</<.createXhr/xhr.onreadystatechange<@ http://192.168.100.199/projeqtor/external/dojo/projeqtorDojo.js?version=V4.5.6:15:422125
.cache["dojo/_base/lang"]/</lang.hitch/<@ http://192.168.100.199/projeqtor/external/dojo/dojo.js?version=V4.5.6.0113:15:89971


 
Posted : 02 Jun 2015 16H25
(@babynus)
Posts: 14952
Member Admin
 

On Firefox, to open Browser console just hit [F12] key and then select "console" tab.


 
Posted : 02 Jun 2015 16H25
(@durou-c)
Posts: 468
Contributor
Topic starter
 

message on error browser:

"Error parsing server result:" SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Trace de la pile :
.cache["dojox/form/uploader/_HTML5"]/</<.createXhr/xhr.onreadystatechange<@ http://192.168.100.199/projeqtor/external/dojo/projeqtorDojo.js?version=V4.5.6:15:422125
.cache["dojo/_base/lang"]/</lang.hitch/<@ http://192.168.100.199/projeqtor/external/dojo/dojo.js?version=V4.5.6.0113:15:89971


 
Posted : 02 Jun 2015 16H33
(@babynus)
Posts: 14952
Member Admin
 

So, you have to go to the "Network" tab, text again, search for "saveAttachment.php" line, select it and in the right part, select "response" tab.
What is displayed here ?


 
Posted : 02 Jun 2015 16H40
(@durou-c)
Posts: 468
Contributor
Topic starter
 

see on attached files .... nothing


 
Posted : 02 Jun 2015 17H00
Cezary Marzec
(@c-doe)
Posts: 10
Active Member
 

I have the same problem 🙁


 
Posted : 03 Jun 2015 12H34
(@babynus)
Posts: 14952
Member Admin
 

Attached file should fix the issue (unzip it in /tool folder).
Please try and tell result.


 
Posted : 03 Jun 2015 13H55
Cezary Marzec
(@c-doe)
Posts: 10
Active Member
 

there is no attachment 🙁 or im going blind


 
Posted : 03 Jun 2015 14H03
(@babynus)
Posts: 14952
Member Admin
 

File is attached a few messages below...
re-attached it here


 
Posted : 03 Jun 2015 14H14
(@durou-c)
Posts: 468
Contributor
Topic starter
 

is it the same file ?


 
Posted : 03 Jun 2015 19H46
(@babynus)
Posts: 14952
Member Admin
 

yes


 
Posted : 03 Jun 2015 21H17
Share:

Scroll to Top