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.

PHP Illegal string ...
 
Notifications
Clear all

PHP Illegal string offset 'name' when trying to save attachment.

4 Posts
2 Users
0 Reactions
3,687 Views
(@jimbdeath1)
Posts: 2
New Member
Topic starter
 
[#2296]

Just like the subject says...I try to add an attachment to a project or activity, and it throws this error:

/var/www/projeqtor/tool/saveAttachement.php' at line (199)
2015-04-23 13:39:19 ** ERROR ** cause = Illegal string offset 'name'
2015-04-23 13:50:45 ** ERROR ** ERROR **
2015-04-23 13:50:45
** ERROR ***** on file

I'm running this with Ubuntu 14.04.

Thanks.


 
Posted : 24 Apr 2015 5H10
(@babynus)
Posts: 14952
Member Admin
 

Hi,

This is due to some debug line that you can remove : in /tool/saveAttachement.php, remove or comment line 199 :

//debugLog("   traitement fichier ".$uploadedFile['name']);

But this should occur only if you have an import error (for instance importing too big file)


 
Posted : 24 Apr 2015 17H32
(@jimbdeath1)
Posts: 2
New Member
Topic starter
 

Thanks for the quick reply.

Now I get an error at line 276 when I try to insert a hyperlink.

?


 
Posted : 24 Apr 2015 20H54
(@babynus)
Posts: 14952
Member Admin
 

Strange as I don't reproduce this issue, using Chrome, FF and IE11.
Maybe you're using another bvrowser ?

What is sure is that you should remove all debugLog in saveAttachement.php.


 
Posted : 24 Apr 2015 21H32
Share:

Scroll to Top