#1 August 11, 2023 3:45pm

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Duplicate Page error

Hey Tim,

We are getting a Duplicate Page error but can't pinpoint the reason as it works for some pages(templates) but not others. When we get the error and go back, the page is in save mode. I edit the saved mode page and click Save & Publish, I still get error below.

We are getting the error with bigtree 4.4.16 and 4.5.6


Fatal error: Uncaught TypeError: Argument 1 passed to Ausi\SlugGenerator\SlugGenerator::generate() must be of the type string, null given, called in C:\MAMP\htdocs\bigtree456\core\inc\bigtree\cms.php on line 1866 and defined in C:\MAMP\htdocs\bigtree456\core\inc\lib\slug-generator\src\SlugGenerator.php:73 Stack trace: #0 C:\MAMP\htdocs\bigtree456\core\inc\bigtree\cms.php(1866): Ausi\SlugGenerator\SlugGenerator->generate(NULL) #1 C:\MAMP\htdocs\bigtree456\core\inc\bigtree\admin.php(4027): BigTreeCMSBase::urlify(NULL) #2 C:\MAMP\htdocs\bigtree456\core\inc\bigtree\admin.php(4029): BigTreeAdminBase::getFullNavigationPath('-1', Array) #3 C:\MAMP\htdocs\bigtree456\custom\admin\form-field-types\process\program-select.php(16): BigTreeAdminBase::getFullNavigationPath(NULL) #4 C:\MAMP\htdocs\bigtree456\core\inc\bigtree\admin.php(7702): include('C:\\MAMP\\htdocs\\...') #5 C:\MAMP\htdocs\bigtree456\core\admin\modules\pages\_resource-parse.php(48): BigTreeAdminBase::processField(Array) #6 C:\MAMP\htdocs\bigtree456\core\admin\modules\p in C:\MAMP\htdocs\bigtree456\core\inc\lib\slug-generator\src\SlugGenerator.php on line 73

Last edited by doon.mok (August 11, 2023 3:53pm)

Offline

#2 August 23, 2023 10:09am

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Duplicate Page error

Sorry for the delayed response here, for some reason BigTree's forum emails were being sent to spam. I'll try to get a fix out for this ASAP!

Offline

#3 August 24, 2023 7:49pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Duplicate Page error

Weird, I'm not able to replicate this. Is there a certain template that it always occurs on? I did push up a fix to 4.5-devel for BigTreeCMS::urlify so that it doesn't crash on a null value though.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.