An error has occurred.
Instance ID: c6459b4c-f3da-4803-8b57-2c07bcc02dfc Error Code: #0 Component: Generic
Code:
Call to undefined function PrinsFrank\Standards\Country\locale_get_display_region()
Latest Preview Build. Am I missing a step or setting? Likely... but I also can't find anything about it on Google, so this is my fallback.
Hey there,
I'm not able to replicate this. Is it on a specific page or when triggering a specific action?
Thanks!
Trying to view the admin panel. Can't get past that point. It also returns the same error when trying to view the homepage (the /public that fossbilling redirects to off index).
When I grep "locale_get_display_region" in the prinsfrank directory, it returns it in vendor/prinsfrank/standards/src/Country/CountryAlpha2.php, so that library seems to be complete enough... I don't know how the file is called as a function though, other than in composers autoload_static.php... but this is all someone else's code (not mine), so I don't want to go poking around too deep and get lost. The odd thing is, is that it was working for a short time before the error popped up and stopped me dead. I wasn't in the process of entering any data in, or anything... just tried opening the admin page, and wham. Full size error.
If you delete everything under the "data/cache/" directory, does it start working again?
Unfortunately not, but thanks for responding. Upon deleting every file and folder inside data/cache/, and reloading the page from a different browser (to avoid client-side cache), the server recreates 1 empty folder and 1 file, but the error is still there. The file (classMap.php) appears to be a pretty substantial list of other php files... probably more than you want me to paste in here.
[hostcanadian@server public_html]# ls -l data/cache/*
-rw-r--r-- 1 hostcanadian hostcanadian 32762 Sep 25 23:23 data/cache/classMap.php
data/cache/sf_cache:
total 0
That's weird then. Next thing I'd try doing is backing up, then deleting everything except for the config.php file.
Download the latest release again and then extract it where you had FOSSBilling installed.
Then delete the install folder.
This should get all of the FOSSBilling related files to a clean state
Unfortunately, the same result. I'm going to try backing up the database and the config file, and doing a complete recreation of the domain, in case something got messed up there somewhere and I'm just overlooking it.
Will return shortly (hopefully, anyway) with an update.
<<follow up>>
Sometimes it's easier just to wipe out everything and start over. My wife keeps telling me that its not how I should be avoiding my life responsibilities, but if it works...
Doing a database (and config.php) backup, completely removing the account from WHM, and then doing a fresh recreation (this time remembering to disable phalcon5 and psr), then restoring the 2 files, seems to have sorted out the prinsfrank error. Let's hope it stays gone, because my WHMCS license expires in 3 days, and that $40+ a month for something that used to be $15 really hits hard.
Happy to hear you figured it out!
Though I will admit I find it odd that you ended up needing to remove & recreate the account from WHM