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.

Activity not displa...
 
Notifications
Clear all

Activity not displaying all three columns properly after attaching image

35 Posts
2 Users
0 Reactions
15.5 K Views
(@iconic)
Posts: 280
Active Member
Topic starter
 
[#6674]

One of my workers was trying to attach a few images on his activity and when he did this the whole activity began acting weird and now this activity can not be viewed correctly
How do I correct this?


 
Posted : 29 Apr 2020 14H44
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Never faced this.
I guess you'll find some error in log file.
Please post it here.


 
Posted : 30 Apr 2020 12H38
(@iconic)
Posts: 280
Active Member
Topic starter
 

This is the latest log.


 
Posted : 30 Apr 2020 17H40
(@iconic)
Posts: 280
Active Member
Topic starter
 

It seems what happened was one of my resources (workers) was attaching files. The first two of them attached properly and then the third one created the problem. Not sure if this helps.


 
Posted : 01 May 2020 5H27
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

It seems you are useing an old version of projeqtor.
Try and migate to latest stable release.


 
Posted : 01 May 2020 16H50
(@iconic)
Posts: 280
Active Member
Topic starter
 

I am using the latest version of 8.4.3


 
Posted : 01 May 2020 17H34
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

But the log is from very old version.
Log file now contains version number on each line, this one does not.
Looking at file name it seems is it log from december 2016...
so not the last one (difficult to find source of error here)


 
Posted : 02 May 2020 16H15
(@iconic)
Posts: 280
Active Member
Topic starter
 

Please accept my apology, the reason why the log is very old is because I uploaded the wrong log. I have now uploaded the correct log of when the probably happened on the 29 April, 2020.

Please look at the correct log that I have uploaded relating to this problem and your assistance would be greatly appreciated of how to fix it.


 
Posted : 03 May 2020 11H55
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

The log file shows 2 errors, but none seem relative to your issue.

First can be fixed in /model/IndicatorValue.php, replacing line 312 from

$pe=get_class($obj).'PlanningElement';

to

$pe=(($obj)?get_class($obj):'').'PlanningElement';

Second can be fixed in /tool/projeqtor.php adding one line after line 5003, this way

function searchAllAttachmentMailable($objectClass,$idObj){
  if (!$objectClass or !$idObj) return array(array(),array());

Please try and apply these patches to see it it fixes your issue (I'm not very optimistic about this)


 
Posted : 04 May 2020 10H46
(@iconic)
Posts: 280
Active Member
Topic starter
 

I did as explained and the problem for this activity is the same.

Is there a way I can delete the images that were attached to the activity in the database and see if that fixes it. If so where in the database would I search for the images.


 
Posted : 04 May 2020 11H09
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

you must search in table "attachment"
Before deleting, please post here content of the line (it may help solve the issue).


 
Posted : 04 May 2020 11H13
(@iconic)
Posts: 280
Active Member
Topic starter
 

Here is the content of the four images from the database. Can you spot anything unusual.


 
Posted : 04 May 2020 11H56
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Nothing strange about these attachments


 
Posted : 04 May 2020 13H00
(@iconic)
Posts: 280
Active Member
Topic starter
 

It has happened again on three other activities. It seems to happen with the same user who is using an ipad tablet.


 
Posted : 04 May 2020 13H39
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Can you check file name, on attachment table and in attachment directory.
It may include unexpected special characters.
Or possibly it is image format that is weird.
Could you please post here one of these images (it it does not contain confidential information)


 
Posted : 04 May 2020 14H00
(@iconic)
Posts: 280
Active Member
Topic starter
 

The images are being taken from an iPad and when I test it, it does not upload correctly. If I upload another different image the attachment works fine. I am attached the image that seems to always create the problem. Please help.


 
Posted : 05 May 2020 4H55
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

The image provided does not seem to be the problem.
I attached it without issue.
You can have a look at Ticket #2 on demo.projeqtor.org.

Possibly it comes from how the user adds the image.
Could you give hints abot the way the image is added to the item ?
Could the user try and add an image on some ticket on Demo with his iPad ?


 
Posted : 05 May 2020 11H42
(@iconic)
Posts: 280
Active Member
Topic starter
 

There has to be a problem with the image. Have a look at this video of how the upload of the image behaves.
https://www.dropbox.com/s/vgpgghx19yxqj09/attachment_problem_withimage.mp4?dl=0

About the questions

Possibly it comes from how the user adds the image.

I tried it on my PC and while it does not corrupt the entire activity the upload of the image behaves in an unusual way. See video

Could you give hints abot the way the image is added to the item ?

I watched him upload the image and he uses the attachment feature the same way as you would expect. There is nothing wrong with the way he is uploading as even when I test it on my computer a problem occurs. Yet when I use another image on my computer it behaves correctly.

Could the user try and add an image on some ticket on Demo with his iPad ?

What do you mean by Demo? What is this where is it?


 
Posted : 05 May 2020 12H11
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

What do you mean by Demo? What is this where is it?

Demo is https://demo.projeqtor.org


 
Posted : 05 May 2020 14H22
(@iconic)
Posts: 280
Active Member
Topic starter
 

I had my worker upload the same photo on the demo version.

They logged in as manager and in Action #3 - Lachlan
they uploaded 4 different files. Had no problems.

What do you think is causing this then?


 
Posted : 07 May 2020 11H07
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Very strange.
Possibly it is due to some backend treatment of the file.
For instance, virus analysis of the image, charset encryption, problem with name of file, missing module.

What is the OS of your server ?
What is you PHP server and web application ? (apache with PHP module, nginx + PHPfrm, else ?)
Did you have a look at apache error logs ?


 
Posted : 07 May 2020 11H22
(@iconic)
Posts: 280
Active Member
Topic starter
 

Is there any other solution or help you can provide me with this. Seems to still happen with my staff member using the ipad and uploading the photos.


 
Posted : 12 May 2020 9H19
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Really hard to analyze as we cannot reproduce and your user cannot even reproduce on our Demo so that we could have a test case.
Possibly it is an item on your network that changes the image (antivirus, proxy, firewall).


 
Posted : 12 May 2020 18H02
(@iconic)
Posts: 280
Active Member
Topic starter
 

A disappointing outcome as when they did it on the demo of projeqtor nothing change regarding proxy or networking. That means it cannot be from the user's point, but something to do with our installation or files of projeqtor.


 
Posted : 19 May 2020 4H42
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Sure.
Have a look at file stored on server from attached file : has it something weird ? (special characters or else)


 
Posted : 22 May 2020 18H41
Page 1 / 2
Share:

Scroll to Top