You are not logged in.
When viewing form builder(v2.7.1 and v2.7.2) entries on bigtree 4.5.11, I am getting warning below.
PHP 8
Warning: Undefined array key 28 in /home/rfucli5/dev....com/extensions/com.fastspot.form-builder/ajax/entries-page.php on line 11
foreach ($fields as $field) {
$value = $entry["data"][$field["id"]];
$field_type = $field["type"];
Works fine if debug is false, I am testing locally and always have debug set to true. Just in case this becomes an issue later on.
Thank you, Tim!
Hello,
We are testing PHP 8.2 with Events 2 v2.5 extension and we are getting the following below.
Deprecated: Creation of dynamic property BTXEvents\Event::$Array is deprecated in C:\MAMP\htdocs\upgrade\extensions\com.fastspot.2.events\classes\base-object.php on line 32
Hey Tim,
Do you know if a bigtree update will be coming out soon and if this fix is in it?
Thanks
Thanks for the update.
After doing more testing, the $html was not the issue.
We had to use the SMTP tab instead of Local Server. Works fine in PHP 7 and 8.
I changed back to PHP 7.4.1 and the emails look correctly. So it must be something with PHP 8.
The core/inc/bigtree/utils.php sendEmail function is checking if $html is empty or not.
if ($html) {
$mailer->isHTML(true);
$mailer->Body = $html;
$mailer->AltBody = $text;
} else {
$mailer->Body = $text;
}
The core/inc/bigtree/admin.php emailDailyDigest function does not seem to set $html.
We also compared an old header(email looks fine) vs broken header and some code on the same line.
Not sure if that makes a difference.
Working header
X-PHP-Script: .../site/index.php for 5.188.62.21
X-PHP-Originating-Script: 1000:phpmailer.php
Date: Mon, 23 Oct 2023 14:43:44 -0500
From: BigTree CMS <no-reply@....com>
Message-ID: <73e2a48e4f8a39a5aa60de103b361263@www.....com>
X-Mailer: PHPMailer 5.2.23 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Broken header
X-PHP-Script:.../site/index.php for 73.44.82.111 X-PHP-Originating-Script: 1000:phpmailer.php
Date: Fri, 17 Nov 2023 11:45:16 -0600 From: BigTree CMS <rfucli5@....com> Reply-To: no-reply@....com Message-ID: <75bbdac0573bd0087ca8e786e8d0fd89@....com> X-Mailer: PHPMailer 5.2.23 (https://github.com/PHPMailer/PHPMailer) MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-1
We recently updated to bigtree 4.5.7 and PHP 8.1.16. Our daily digest now comes all in html code.
Html code shows up in gmail and hotmail.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Daily Digest</title>
</head>
...
We were using Local Server in the Email Deliver tab. We are trying to see if SMTP tab makes a difference but when I try to run cron using the instructions below, I get errors.
https://www.bigtreecms.org/developers/d … ly-digest/
I can't test what comes through and have to wait 24 hours for the next email.
Cron
php -f /.../.../.../core/cron.php
<br />
<b>Warning</b>: Undefined array key "SERVER_PORT" in <b>/.../core/inc/bigtree/utils.php</b> on line <b>367</b><br />
<br />
<b>Warning</b>: Undefined array key "SERVER_NAME" in <b>/.../core/inc/bigtree/utils.php</b> on line <b>370</b><br />
<br />
<b>Warning</b>: Undefined array key "REQUEST_URI" in <b>/.../core/inc/bigtree/utils.php</b> on line <b>370</b><br />
<br />
<b>Warning</b>: Undefined array key "php_boot_error" in <b>/.../core/inc/bigtree/admin.php</b> on line <b>608</b><br />
<br />
<b>Warning</b>: Trying to access array offset on value of type null in <b>/.../core/inc/bigtree/sitemap.php</b> on line <b>105</b><br />
<br />
<b>Warning</b>: Trying to access array offset on value of type null in <b>/.../core/inc/bigtree/sitemap.php</b> on line <b>105</b><br />
<br />
<b>Warning</b>: Trying to access array offset on value of type null in <b>/.../core/inc/bigtree/sitemap.php</b> on line <b>105</b><br />
Do you have any recommendations on testing or what could be the issue?
Thanks
I think my suggestion at the end of this post would fix the issue.
https://www.bigtreecms.org/forum/viewtopic.php?id=1857
When using a static list in a callout and having it as a label, it will show the ID. If the list is dynamic, it will show the description.
BigTree 4.5.8
Link to image below,
- dynamic will show "Faculty In-Content List Test"
- static will show "1 In-Content List Test"
Link to image
https://ibb.co/tYcT26f
Thank you!
Thank you, Tim.
Tim,
Will you be updating the Section Break Extension to be compatible with PHP 8?
It still has short open tags.
Wondering to see if we need to remove and figure something else out.
Thanks
Doon
Tim,
I thought I fixed the error by export/importing the table but wasn't getting new data. I ran "composer update" again but was getting error below again. To fix this error, I needed bcmath PHP extension installed. After it was installed, I was successful to set up GA4 through bigtree. Also make sure cron.php and cron-run.php have execute permissions.
In case anyone else runs into this issue.
Fatal error: Uncaught Error: Call to undefined function Google\Protobuf\Internal\bccomp() in /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:961 Stack trace: #0 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1302): Google\Protobuf\Internal\Message->convertJsonValueToProtoValue(2, Object(Google\Protobuf\Internal\FieldDescriptor), true) #1 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1241): Google\Protobuf\Internal\Message->mergeFromArrayJsonImpl(Array, true) #2 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1338): Google\Protobuf\Internal\Message->mergeFromJsonArray(Array, true) #3 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(795): Google\Protobuf\Internal\Message->parseFromJsonStream(Object(Google\Protobuf\Internal\RawInputStream), true) #4 /.../ in /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php on line 961
Same version, PHP 7.4.16.
Tim,
I'm not sure what happened but I didn't get the above error anymore but kept on getting the error message "The Property ID you entered does not appear to be valid.". Its odd because it works fine locally but not on our server.
What I did was export/import bigtree_settings table to my local and added the google analytics information. Then exported/imported the table back to our dev website on the server and everything looks to be working.
Tim, I did forget to run composer but after I ran composer update and tried again. Now a different error.
Composer.json file
{
"require": {
"aws/aws-sdk-php": "^3",
"oyejorge/less.php": "v1.7.0.14",
"ext-gd": "*",
"ext-json": "*",
"webonyx/graphql-php": "^14.3",
"predis/predis": "^1.1",
"psr/simple-cache": "^1.0",
"mrclay/jsmin-php": "^2.4",
"guzzlehttp/guzzle": "^7.4.5",
"google/analytics-data": "^0.10.0"
}
}
Error
Fatal error: Uncaught Error: Call to undefined function Google\Protobuf\Internal\bccomp() in /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php:961 Stack trace: #0 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1302): Google\Protobuf\Internal\Message->convertJsonValueToProtoValue(2, Object(Google\Protobuf\Internal\FieldDescriptor), true) #1 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1241): Google\Protobuf\Internal\Message->mergeFromArrayJsonImpl(Array, true) #2 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(1338): Google\Protobuf\Internal\Message->mergeFromJsonArray(Array, true) #3 /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php(795): Google\Protobuf\Internal\Message->parseFromJsonStream(Object(Google\Protobuf\Internal\RawInputStream), true) #4 /.../ in /.../vendor/google/protobuf/src/Google/Protobuf/Internal/Message.php on line 961
Hello,
I am trying to connect to GA4 on our dev website but getting the error below. What is odd though, it worked locally(Mamp) but not on our dev server. Locally, I updated BigTree by copy/paste core files. Server, I updated 4.5.7 through BigTree.
Fatal error: Uncaught Error: Class 'Google\Analytics\Data\V1beta\BetaAnalyticsDataClient' not found in /.../core/inc/bigtree/apis/google-analytics-4.php:30 Stack trace: #0 /.../core/inc/bigtree/apis/google-analytics-4.php(146): BigTreeGoogleAnalytics4->getClient() #1 /.../core/admin/modules/developer/analytics/set-property-id.php(5): BigTreeGoogleAnalytics4->testCredentials() #2 /.../core/admin/router.php(549): include('/home/rfucli5/d...') #3 /.../core/launch.php(78): include('/home/rfucli5/d...') #4 /.../site/index.php(3): include('/home/rfucli5/d...') #5 {main} thrown in /.../core/inc/bigtree/apis/google-analytics-4.php on line 30
Any suggestions?
Thanks
Doon
Hello Tim,
I am looking to add the Events 2 extension(v2.5) and the Categories dropdown list is giving me a warning and not showing the Categories I added.
Works with bigtree 4.5.3 but we are still on version 4.4.16.
Steps
Add new Category
Add new Event > Under Categories, I get warnings below
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'BTXEvents' does not have a method 'parseManyToMany' in C:\MAMP\htdocs\migrate\core\admin\field-types\many-to-many\draw.php on line 47
Warning: call_user_func() expects parameter 1 to be a valid callback, class 'BTXEvents' does not have a method 'parseManyToMany' in C:\MAMP\htdocs\migrate\core\admin\field-types\many-to-many\draw.php on line 48
Warning: Invalid argument supplied for foreach() in C:\MAMP\htdocs\migrate\core\admin\field-types\many-to-many\draw.php on line 52
Warning: count(): Parameter must be an array or an object that implements Countable in C:\MAMP\htdocs\migrate\core\admin\field-types\many-to-many\draw.php on line 60
Warning: count(): Parameter must be an array or an object that implements Countable in C:\MAMP\htdocs\migrate\core\admin\field-types\many-to-many\draw.php on line 60
I forgot about caching, guess it wasn't as easy as I thought it would be. Thanks for the consideration.
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
Got it, thanks for the quick reply.
Hey Tim,
I hope everyone is safe.
We have static_root as //rosalin... I'm not sure adding https:// will fix the issue with old Amazon S3 files that still have "//s3.amazonaws.com". Do you think running UPDATE in the database to look for "//s3.amazonaws.com" and add "https:" is the best option?
Thanks for your help.
I also noticed the core/inc/bigtree/image.php file checks if the file begins with //, add http. Adding http would break for us since we changed our S3 to only allow https.
if (strpos($file, "//") === 0) {
$file = "http:".$file;
}