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.

auto install plugin
 
Notifications
Clear all

auto install plugin

17 Posts
2 Users
0 Reactions
10.1 K Views
(@durou-c)
Posts: 468
Contributor
Topic starter
 
[#3975]

I want to upgrade to new version 6.0.5 with autoinstall, but i have a problem, look on log file:

2016-12-27 14:21:15.901 ** ERROR ** Try to hack detected
2016-12-27 14:21:15.901 ** ERROR ** Source Code = securityCheckPage() - not .php or URL wrapper or not actual file
2016-12-27 14:21:15.902 ** ERROR ** QUERY_STRING =
2016-12-27 14:21:15.902 ** ERROR ** REMOTE_ADDR = 127.0.0.1
2016-12-27 14:21:15.902 ** ERROR ** SCRIPT_FILENAME = /var/www/projeqtor/view/main.php
2016-12-27 14:21:15.902 ** ERROR ** REQUEST_URI = /projeqtor/view/main.php
2016-12-27 14:21:25.222 ===== TRACE ===== NEW CONNECTED USER 'dep'
2016-12-27 14:21:42.827 ** ERROR ** La taille du fichier excède la limite de 6000000 octets (paramAttachmentMaxSize)
2016-12-27 14:21:42.827 ** ERROR ** ERROR **
2016-12-27 14:21:42.827
** ERROR ** on file '/var/www/projeqtor/plugin/installAuto/installAutoUpload.php' at line (151)
2016-12-27 14:21:42.827
** ERROR ** cause = Undefined variable: fileName
2016-12-27 14:24:12.330
** ERROR ** La taille du fichier excède la limite de 6000000 octets (paramAttachmentMaxSize)
2016-12-27 14:24:12.330
** ERROR ** ERROR **
2016-12-27 14:24:12.330 ** ERROR ** on file '/var/www/projeqtor/plugin/installAuto/installAutoUpload.php' at line (151)
2016-12-27 14:24:12.330 ** ERROR ** cause = Undefined variable: fileName
2016-12-27 14:27:33.244 ** ERROR ** La taille du fichier excède la limite de 50000000 octets (paramAttachmentMaxSize)
2016-12-27 14:27:33.244 ** ERROR ** ERROR **
2016-12-27 14:27:33.244
** ERROR ** on file '/var/www/projeqtor/plugin/installAuto/installAutoUpload.php' at line (151)
2016-12-27 14:27:33.244
** ERROR ** cause = Undefined variable: fileName
2016-12-27 14:31:14.260
** ERROR ** La taille du fichier excède la limite de 50000000 octets (paramAttachmentMaxSize)
2016-12-27 14:31:14.260
** ERROR ** ERROR **
2016-12-27 14:31:14.260 ** ERROR ** on file '/var/www/projeqtor/plugin/installAuto/installAutoUpload.php' at line (151)
2016-12-27 14:31:14.260 ** ERROR ** cause = Undefined variable: fileName


 
Posted : 27 Dec 2016 16H33
(@durou-c)
Posts: 468
Contributor
Topic starter
 

and i have change the filesize with 50m on php.ini


 
Posted : 27 Dec 2016 16H35
(@babynus)
Posts: 14952
Member Admin
 

Did you restat PHP avec changing php.ini ?


 
Posted : 27 Dec 2016 17H10
(@durou-c)
Posts: 468
Contributor
Topic starter
 

yes I restart Apache2 with:
sudo /etc/init.d/apache2 restart


 
Posted : 27 Dec 2016 19H19
(@babynus)
Posts: 14952
Member Admin
 

Hi,

I just tested, you can get this error if php user does not have write acces on folder projeqtor/plugin/installAuto/files.

Sure the message is not explicit. We'll improve this.


 
Posted : 27 Dec 2016 20H07
(@durou-c)
Posts: 468
Contributor
Topic starter
 

access write is ok... it's not the good way. 🙁


 
Posted : 27 Dec 2016 21H31
(@babynus)
Posts: 14952
Member Admin
 

Try and update post_max_size in php.ini to set it at least equal to max_file_size.


 
Posted : 28 Dec 2016 11H58
(@durou-c)
Posts: 468
Contributor
Topic starter
 

I try to change value of post_max_size with 50M but nothing feals good.

I send the php.ini file.


 
Posted : 29 Dec 2016 15H25
(@babynus)
Posts: 14952
Member Admin
 

php.ini seems correct.
I guess you restarted PHP before testing, so issue is not here.

As I can see allow_url_fopen in on, why nor directly retreive file from list :

Just click on version nome to retreive it.


 
Posted : 29 Dec 2016 15H33
(@durou-c)
Posts: 468
Contributor
Topic starter
 

Just click on version nome to retreive it.

whan in click on version, I have this error message.


 
Posted : 29 Dec 2016 16H52
(@babynus)
Posts: 14952
Member Admin
 

You should have an error in log file, could you post it ?


 
Posted : 29 Dec 2016 17H49
(@durou-c)
Posts: 468
Contributor
Topic starter
 

sorry, but what's the name and the path of the log file ? 🙁


 
Posted : 29 Dec 2016 21H28
(@babynus)
Posts: 14952
Member Admin
 

Default location is ../files/logs but you may have changed it on installation.
You'll find location in your parameters.php file.


 
Posted : 29 Dec 2016 21H49
(@durou-c)
Posts: 468
Contributor
Topic starter
 

log files attached


 
Posted : 30 Dec 2016 1H28
(@durou-c)
Posts: 468
Contributor
Topic starter
 

file attached


 
Posted : 30 Dec 2016 1H40
(@babynus)
Posts: 14952
Member Admin
 

OK !

What I can read from log file is that you have issue while deploying the application, not while downloading...
It is because the installation will overwrite all the application files, so PHP user must have write acces to the whole projeqtor directory
Something like :

chmod -R 755 /var/www/projeqtor/
chown www-data: /var/www/projeqtor/

should fix issue.
NB : if you're not on debian like distrib (Ubuntu, ...) change www-data with correct php user, for instance apache for red-hat like litrib (centos,...)


 
Posted : 30 Dec 2016 10H32
(@durou-c)
Posts: 468
Contributor
Topic starter
 

Yes, it works, tks.


 
Posted : 30 Dec 2016 13H06
Share:

Scroll to Top