The FOSSBilling Forum Support Support - Bugs & Errors PrinsFrank error...?

PrinsFrank error...?

PrinsFrank error...?

 
  • 0 Vote(s) - 0 Average
 
NightStorm
Junior Member

5
09-24-2025, 10:50 PM #1
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.
NightStorm
09-24-2025, 10:50 PM #1

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.

BelleNottelling
Administrator

91
09-25-2025, 09:15 PM #2
Hey there,

I'm not able to replicate this. Is it on a specific page or when triggering a specific action?

Thanks!
BelleNottelling
09-25-2025, 09:15 PM #2

Hey there,

I'm not able to replicate this. Is it on a specific page or when triggering a specific action?

Thanks!

NightStorm
Junior Member

5
09-26-2025, 04:13 AM #3
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.
NightStorm
09-26-2025, 04:13 AM #3

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.

BelleNottelling
Administrator

91
09-26-2025, 05:41 AM #4
If you delete everything under the "data/cache/" directory, does it start working again?
BelleNottelling
09-26-2025, 05:41 AM #4

If you delete everything under the "data/cache/" directory, does it start working again?

NightStorm
Junior Member

5
09-26-2025, 06:28 AM #5
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
NightStorm
09-26-2025, 06:28 AM #5

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

BelleNottelling
Administrator

91
09-27-2025, 06:23 AM #6
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
BelleNottelling
09-27-2025, 06:23 AM #6

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

NightStorm
Junior Member

5
09-27-2025, 02:46 PM #7
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.
Edited 09-27-2025, 03:18 PM by NightStorm.
NightStorm
09-27-2025, 02:46 PM #7

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.

BelleNottelling
Administrator

91
09-30-2025, 06:39 PM #8
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
BelleNottelling
09-30-2025, 06:39 PM #8

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

 
  • 0 Vote(s) - 0 Average
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)