Main Menu

Corrupted File

Started by fizzyjoe908, July 14, 2013, 06:05:16 PM

fizzyjoe908

Hello,

After updating my hostbill installation to 4.7.4 recently, I now get this error on the index page of the admin area:

The file /home/user/public_html/hostbill/includes/modules/Site/accounts/models/class.accounts_model.php is corrupted.

All other admin area pages work fine. The hostbill wiki gives 3 possible solutions to this issue, none of which work for me. I'm running ioncube 4.2.2 and I tried reuploading the "corrupted" file to no success. Any help on this?

Thanks

Patrick

Quote from: fizzyjoe908 on July 14, 2013, 06:05:16 PM
Hello,

After updating my hostbill installation to 4.7.4 recently, I now get this error on the index page of the admin area:

The file /home/user/public_html/hostbill/includes/modules/Site/accounts/models/class.accounts_model.php is corrupted.

All other admin area pages work fine. The hostbill wiki gives 3 possible solutions to this issue, none of which work for me. I'm running ioncube 4.2.2 and I tried reuploading the "corrupted" file to no success. Any help on this?

Thanks

I haven't upgraded so i cannot comment but have you tried redownloading hostbill from the hostbillapp website and replacing that file with a fresh one?
Patrick - Forum Rules
Insanity: doing the same thing over and over again and expecting different results. - Albert Einstein

fizzyjoe908

Yes, I have tried doing that. I also contemplated downgrading to 4.7.2 but older versions are not available for download as far as I know.

tallship

You should maintain a complete archive of every single version. kbkp will not provide you access to past versions AFAIK.

Rollbacks might be a little tricky considering any changes to the .sqf, but a restore should do it for you, and then you should be able to feed all relevant transactions into the older database. Not sure if using a newer schema will cause problems for you or not.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

fizzyjoe908

Would you suggest cleanly reinstalling hostbill 4.7.4 and just importing my old database?

tallship

#5
To do my rollback I create a database and install 4.5.8 (the last complete version of hostbill), both  from scratch. You can save your self a little time by simply leaving all the other files in place and reusing your config.php (make sure to chmod -v 755 pipe.php and cron.php and set other perms as applicable).


Then increment through the versions and patches one by one as upgrades, then do a:


$ mysql -uroot -p [hostbilldatabasename] < hostbilldatabasename01-backup-20130606e.sql


Just an example of course, your backup will be named whatever you named it when you peformed the backup with:


$ mysqldump -uroot -p hostbilldb01 >/home/hostbill/backups/db-backups/hostbilldatabase01-backup-20130606e.sql


I hope that helps :)
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

fizzyjoe908

Could you PM me a download for 4.5.8 or is that not ethical for you? I think I'll start saving older versions from now on.

tallship

Yeah I can't do that. Nothing personal, but I don't know that you've been a hostbill owner since at least 4.5.8, although that is the version that had everything included at 57 MegaBytes, while the eviscerated 4.6.0 weighed in at only 37 MBytes.

You can try and ask kbkp to provide you with a link to that which were are entitled, by opening a ticket with their licensing department - which is supposedly free - but that last two tickets I opened were closed w/o any response after a few days.

I do note, however, that the current 4.7.4 archive (which broke CloudStack) is up to 56 MBytes, and the patch released earlier today (hostbill_patch4.7.4_4399.zip) is about 56 KBytes.

You may want to test and see if just installing 4.7.4 and the subsequent patch actually has most of the items you should have available to you in your installation, and get back to us, letting us know too.
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

fizzyjoe908

#8
Ah, I see your concern there. I've been a license holder since January 2013. Regardless, I have opened a ticket in their license department and we'll see how many days it takes for that to be looked at.

EDIT: The licensing ticket was quickly responded to (within an hour) but Kris didn't like the idea of handing over a previous version either. He said the latest version download is all I have access to and it contains all files I should have - such as the now not-free order pages. I guess will try a clean installation of 4.7.4 and import my database into there. Hoping it fixes the corrupted file error as I miss not being able to view the admin index page.

tallship

hm...

Just a thought before you go and do anything.

Check your includes/config.php and make sure it's pointing to the correct *admin* folder ;)

Kindest regards,
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.

fizzyjoe908


fizzyjoe908

Anyone know which version of ionCube that Hostbill is encoded with? That has got to be the issue here.

Lawrence

Quote from: fizzyjoe908 on July 22, 2013, 04:29:14 PM
Anyone know which version of ionCube that Hostbill is encoded with? That has got to be the issue here.

As long as you're using the latest version of Ioncube, you should be fine. I'm running it on the latest version.
Skype: sociallarry | AIM: [email]larry.aim@aim.com[/email] | Forum Rules & Information

These forums are hosted by me with no intentions to ever monetize them. These forums are here solely for the benfit of the HostBill community.

fizzyjoe908

Ah, I don't have access to the latest version thanks to shared web hosting. I'm using version 4.2.2 which is probably why this file is saying corrupted. It was probably one file out of the many within Hostbill that was encoded using an updated version.