VestaWebInterface icon indicating copy to clipboard operation
VestaWebInterface copied to clipboard

FtpPlugin - HTTP ERROR 500

Open Plata-0-Plomo opened this issue 8 years ago • 15 comments

Hello.

I have installed vesta fwi 0.5.3 beta and ftp plugin 0.1.2, but plug-in does not work. When i open the page, i getting HTTP ERROR 500 .

Hi, could you please edit the '.htaccess' file in your installation and turn on debugging by changing the line php_flag display_errors off to php_flag display_errors on ?

I did it, the error remained the same, unchanged

Sorry, google translate ;)

Plata-0-Plomo avatar Sep 09 '18 08:09 Plata-0-Plomo

@Plata-0-Plomo It looks like you did a manual installation of VWI at the same time that I was releasing v0.5.3 and possibly downloaded some misconfigured code. Could you please paste the contents of your .htaccess file here and comment the link?

cjroeser avatar Sep 09 '18 09:09 cjroeser

I'm sorry, problem with ftp blugin.

Plata-0-Plomo avatar Sep 09 '18 09:09 Plata-0-Plomo

Hi, could you please edit the '.htaccess' file in your installation and turn on debugging by changing the line php_flag display_errors off to php_flag display_errors on ?

I got next error (sorry, changes in htaccess was not saved): Fatal error: Cannot redeclare vwicrypt() (previously declared in /home/hosting/web/domain.my/public_html/includes/includes.php:298) in /home/hosting/web/domain.my/public_html/includes/includes.php on line 298

Plata-0-Plomo avatar Sep 09 '18 09:09 Plata-0-Plomo

I noticed that when I turned on the error display, the list itself did not display the lists of domains, users. After turning off the error display, everything again worked.

Plata-0-Plomo avatar Sep 09 '18 09:09 Plata-0-Plomo

@Plata-0-Plomo The list going away is expected as the debugging setting causes errors in rendering because it places messages in the middle of the code.

I believe I have found the cause of the error, which I have not experienced because you are using PHP 5.5 and I use PHP 7.0-7.2 for testing. Please delete your ftp plugin folder and upload the folder from the zip file I have linked below, then see if your error goes away.

ftp-test.zip

cjroeser avatar Sep 09 '18 10:09 cjroeser

Unfortunately there are no visible changes.

Fatal error: Cannot redeclare vwicrypt() (previously declared in /home/hosting/web/domain.my/public_html/includes/includes.php:298) in /home/hosting/web/domain.my/public_html/includes/includes.php on line 298

Plata-0-Plomo avatar Sep 09 '18 16:09 Plata-0-Plomo

@Plata-0-Plomo Could you visit http://panel.plomo.gq/plugins/ftp/config.php with debugging enabled and see if you get the same error?

cjroeser avatar Sep 09 '18 18:09 cjroeser

Fatal error: Cannot redeclare vwicrypt() (previously declared in /home/hosting/web/domain.my/public_html/includes/includes.php:298) in /home/hosting/web/domain.my/public_html/includes/includes.php on line 298

((

Plata-0-Plomo avatar Sep 09 '18 19:09 Plata-0-Plomo

I'm sorry, but as I cannot replicate the issue and don't have access to your server, I am unable to diagnose or solve this problem. If you are comfortable with allowing me FTP access or doing further testing, feel free to email me at [email protected]. Otherwise, I can only recommend attempting a clean installation, or possibly upgrading to a newer version of PHP.

cjroeser avatar Sep 09 '18 20:09 cjroeser

Hello! It seems I managed to solve the problem. It's hard for me to determine whether this is a script error or a php version error.

Google said that the error arises from the fact that the function was already declared earlier.

How do I fix it?

open / plugins/ftp/config.php replace: require( '../../includes/includes.php');

on:

require("../../includes/config.php"); 
require("../../includes/arrays.php");
require_once( '../../includes/includes.php');

How do you think this is a safe and reliable solution?

I tried to change the version of PHP - it did not help.

p.s. Google Translate

Plata-0-Plomo avatar Sep 12 '18 09:09 Plata-0-Plomo

So shorter:

require("../../includes/config.php");` 
require_once( '../../includes/includes.php');

Plata-0-Plomo avatar Sep 12 '18 09:09 Plata-0-Plomo

The problem is not with a function being declared more than once, just with a script being called more than once, which I do not understand, because includes.php is not called at all in ftp.php and called only once in config.php but they are both giving errors.

cjroeser avatar Sep 12 '18 14:09 cjroeser

The zip file I sent you changed require to require_once, which would have fixed the error if that was the case, but since it didnt, I'm not sure the problem.

cjroeser avatar Sep 12 '18 14:09 cjroeser

I have same problem :(

Fatal error: Cannot redeclare hotKeys() (previously declared in /home/admin/web/mydomain/public_html/includes/includes.php:462) in /home/admin/web/mydomain/public_html/includes/includes.php on line 462

Efkovole avatar Oct 02 '18 21:10 Efkovole

Bug Fixed in FTP Plugin v0.1.3: https://github.com/cdgco/vwi-ftp/releases/tag/v0.1.3

cjroeser avatar Dec 26 '18 23:12 cjroeser