PHP Compile Error

Started by waipla, September 24, 2013, 08:13:20 PM

waipla

Hi,

I updated hostbill yersterday and now when i try to modify or add order pages i got a blank page, it's not working anymore.

"PHP [Compile Error]: Cannot redeclare class Widget_logindetails IN includes/types/types/widgets/logindetails/widget.logindetails.php(5)" This is the error i get in error log.

I tried to clear cache, re upload all files excepted config.php. But nothing change..

I need your help,
Thanks.

I got a backup of SQL / FTP before the update but i dont want to use it :x

Edit : WTF hostbill is trying to find something in /types/types but it's only /types where is this variable ? SQL?

Sentro

From what i know this is happening cause it's trying to include or require a certain file while it's already included. Since those php files are encoded i'd say your best chance is to go back to your old version as sad as that is.

I guess i'ts 90% a code problem and since Kris is...well....busy doing his own stuff i'll take a while for a fix

Enterprisevpssolutions

What is the php version you are running and what control panel are you using if you have one. I am running the latests hostbill version and the only issues i have seen so far were posted in the changelog. If you can give me the steps you are taking so i can reproduce the issue I will see if there is a fix. I just created a test order page to see if happened for me and i did not get a error.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

nibb

This error usually is related to incomplete files in your installation which where partially uploaded or corrupted in the transfer.

If you upload them by FTP, try to upload all files again in binary mode. Its not unusual that a FTP client will not upload encoded files fully, this is true if you happen to abuse multiple connections at once, lets say your FTP is configured to upload 20 files per second, you do this so its faster but neither your connection or server can handle this properly, so some files are not completely uploaded before the server reports back to the FTP its finished.

But once you check your files, you will see that a specific file does not match the same bytes in your server with the local ones.

The logs will usually inform you which file. In this case check if widget.logindetails.php is actually complete in the server.

If its not, then you can assume the same for other files and you will have all type of errors, must things will work fine but specific features will fail when they try to load a partial file.

If this is true, try uploading all your files again, twice or do it slowly, like one by one to avoid FTP corruptions.

I also strongly suggest never to use the auto update feature which several users here love to use and its not strange that they have all types of bugs and errors which I cannot replicate in my install and asking other hostbill users that run it stable they can“t either.

That error is exactly the one you get when a PHP file is failing to complete execute in hostbill and I would advise you to check if files are complete in the server.