Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

FtpPlugin - HTTP ERROR 500 #65

Closed
Plata-0-Plomo opened this issue Sep 9, 2018 · 15 comments
Closed

FtpPlugin - HTTP ERROR 500 #65

Plata-0-Plomo opened this issue Sep 9, 2018 · 15 comments

Comments

@Plata-0-Plomo
Copy link

Plata-0-Plomo commented Sep 9, 2018

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 ;)

@cdgco
Copy link
Owner

cdgco commented Sep 9, 2018

@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?

@Plata-0-Plomo
Copy link
Author

I'm sorry, problem with ftp blugin.

@Plata-0-Plomo
Copy link
Author

Plata-0-Plomo commented Sep 9, 2018

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 Plata-0-Plomo changed the title Billing Plugin - HTTP ERROR 500 FtpPlugin - HTTP ERROR 500 Sep 9, 2018
@Plata-0-Plomo
Copy link
Author

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.

@cdgco
Copy link
Owner

cdgco commented Sep 9, 2018

@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

@Plata-0-Plomo
Copy link
Author

Plata-0-Plomo commented Sep 9, 2018

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

@cdgco
Copy link
Owner

cdgco commented Sep 9, 2018

@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?

@Plata-0-Plomo
Copy link
Author

Plata-0-Plomo commented Sep 9, 2018

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

((

@cdgco
Copy link
Owner

cdgco commented Sep 9, 2018

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 carter@cdgtech.one. Otherwise, I can only recommend attempting a clean installation, or possibly upgrading to a newer version of PHP.

@Plata-0-Plomo
Copy link
Author

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
Copy link
Author

So shorter:

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

@cdgco
Copy link
Owner

cdgco commented Sep 12, 2018

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.

@cdgco
Copy link
Owner

cdgco commented Sep 12, 2018

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.

@Efkovole
Copy link

Efkovole commented Oct 2, 2018

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

@cdgco cdgco added the Type: Bug label Oct 4, 2018
@cdgco
Copy link
Owner

cdgco commented Dec 26, 2018

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

@cdgco cdgco closed this as completed Dec 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants