#26 Bug Reports » Duplicate Page error » August 11, 2023 3:45pm

doon.mok
Replies: 2

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

#27 Re: Bug Reports » Crop Images issue » August 11, 2023 9:25am

Got it, thanks for the quick reply.

#28 Re: Bug Reports » Crop Images issue » August 11, 2023 9:18am

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.

#29 Re: Bug Reports » Crop Images issue » August 9, 2023 1:44pm

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;
}

#30 Re: Bug Reports » Crop Images issue » August 9, 2023 12:14pm

If anyone else has this issue, we had to do an update in the database to add https: at the beginning of the column file.

UPDATE bigtree_resources SET file = CONCAT('https:',file)
WHERE file LIKE '//s3.amazonaws.com%'
AND (type = 'jpg' OR type = 'png' OR type = 'gif' OR type = 'jpeg');

#31 Re: Bug Reports » Crop Images issue » August 7, 2023 3:07pm

The warnings I get after going back in to edit again

Warning: getimagesize(): Unable to find the wrapper "resource" - did you forget to enable it when you configured PHP? in /.../bigtree/core/inc/bigtree/image.php on line 44

Warning: getimagesize(resource:////s3.amazonaws.com/.../welch-speaking.jpg): failed to open stream: No such file or directory in .../bigtree/core/inc/bigtree/image.php on line 44

#32 Bug Reports » Crop Images issue » August 7, 2023 1:51pm

doon.mok
Replies: 7

Hello Tim,

We are having issues with cropping images, we are getting "The file is an invalid image or is an unsupported image type." message. We are using jpg images and on bigtree 4.4.16. We are not having this issue with new images(uploaded to the file directory today), just images already in the file system in Bigtree / S3.

On July 28, we updated S3 to use TLS 1.2 and did notice http images were giving us 404 errors on our website. We are not sure if there is any relation to that change.

Do you have any insight on what could be the issue?

#33 Feature Requests » Search function - allow to not search for archived entries » August 1, 2023 3:12pm

doon.mok
Replies: 2

The BigTreeModule search function, it would be nice add an extra argument to have the option to search all entries or non archived entries.

#34 Re: Developer Help » Matrix field showing ID in module » April 5, 2023 2:25pm

Tim,

I found another issue with the matrix field and list field not showing the selected item. The function processFieldDescription(core/inc/bigtree/admin.php) should have an else statement if list_type is not a "db". That means it is a static list and will still need to get the description.

Something like below added on line 7739

//Get static list description
	else {
		foreach ($field["settings"]["list"] as $list) {
			if($list["value"] == $output) {
				return $list["description"];
				break;
			}
		}
	}
//Get static list description - end

#35 Re: Developer Help » Matrix field showing ID in module » March 24, 2023 11:08am

Hey Tim,

Just updated to bigtree 4.5.2 and it kind of fixed the issue. Fixed for list field but I also have a custom list field. The custom list field still shows the value instead of description.

Code below for my custom list field.

Draw

$services_module = new services;
$services = $services_module->getAll("title ASC");

$list = array();

foreach($services as $item){
		$list[] = array("value" => $item["id"],"description" => $item["title"]);
}	

$field["options"]["list_type"] = '';
$field["options"]["allow-empty"] = "Yes";
$field["options"]["list"] = $list;

include BigTree::path("admin/field-types/list/draw.php");

Process

$field["output"] = htmlspecialchars($field["input"]);

Do you see anything that I could be doing wrong?
Thanks

#37 Re: Developer Help » Matrix field showing ID in module » March 16, 2023 9:53am

Tim,
Were you able to look into this issue?
Thanks

#38 Re: Developer Help » Matrix field showing ID in module » January 19, 2023 4:02pm

It should be showing description instead of value.

#39 Developer Help » Matrix field showing ID in module » January 19, 2023 3:55pm

doon.mok
Replies: 7

We are using a matrix field type in a module. When add/edit the field, it shows the ID instead of the title. We have the checkbox as "Use as title" for the column we want. We upgraded to bigtree 4.5.1 and not sure if this is a bug or something we need to do differently?

URL is picture of matrix from developer>module and module, it should say Board Certification instead of 5
https://ibb.co/mTLhkwS

#41 Developer Help » Events 1.2 with BigTree 4.5 » January 5, 2023 4:44pm

doon.mok
Replies: 2

In the BigTree 4.5 release blog, it is mentioned we should upgrade Events 2 extension before upgrading BigTree. We have have Events 1.2 installed, will it work with BigTree 4.5?
If you recommend us to install Events 2, what is the best way to do that as it seems it uses the same database tables as 1.2 and overwrites. Is there a good way to move over the data from 1.2 to 2?

Thanks

Doon

#42 Re: Developer Help » Upgrade Form Builder - http 500 error » October 19, 2022 7:53am

The null coalescing operator (??), which is a new feature with 7.

#43 Re: Developer Help » Upgrade Form Builder - http 500 error » October 18, 2022 9:22am

Figured out the issue, we had php version 5.5 and form builder needs at least 7.

#44 Developer Help » Upgrade Form Builder - http 500 error » October 17, 2022 3:35pm

doon.mok
Replies: 4

Hello,

I upgraded form builder to v2.6.1 and looks like it upgraded fine but I am getting 500 error when going to Modules > Form Builder. I can see the homepage but when I try to do anything(Add Form, Settings, Edit Form, View), I'm getting the 500 error.

No Issues on Site Status
I can go to Developer >  Modules and Edit Form Builder without any issues
I looked at the directory extensions/com.fastspot.form-builder and all the files seem to be there.

This is the url when going to Settings.
admin/com.fastspot.form-builder*btx-form-builder/settings/

Any suggestions on what could be wrong?

Thanks

Doon

#45 Re: General » Upgrade Extension » October 14, 2022 12:06pm

Thank you, Ignore/Upgrade button now showing up.

#46 Re: General » Upgrade Extension » October 14, 2022 12:00pm

Version 2.5.4

{
    "type": "extension",
    "id": "com.fastspot.form-builder",
    "version": "2.5.4",
    "revision": 42,
    "compatibility": "4.2+",
    "title": "Form Builder",
    "description": "An easy to use form builder allowing the administrative users to easily add fields to a form that stores entries in the database and sends out emails. Also supports paid forms.",
    "keywords": [
        "forms",
        "emails",
        "submissions",
        "form"
    ],
    "author": {
        "name": "Tim Buckingham",
        "url": "http://www.fastspot.com",
        "email": "tim@fastspot.com"
    },
    "licenses": {
        "LGPL v3": "http://opensource.org/licenses/LGPL-3.0"
    },
    "components": {
        "module_groups": [],
        "modules": [
            {
                "name": "Form Builder",
                "route": "com.fastspot.form-builder*btx-form-builder",
                "class": "BTXFormBuilder",
                "icon": "form",
                "group": null,
                "gbp": {
                    "name": "",
                    "table": "",
                    "other_table": ""
                },
                "extension": "com.fastspot.form-builder",
                "id": "modules-15c9cf24c01f2e",
                "views": [
                    {
                        "title": "Forms",
                        "description": "",
                        "table": "btx_form_builder_forms",
                        "type": "searchable",
                        "settings": {
                            "sort_column": "title",
                            "sort_direction": "ASC",
                            "per_page": "15",
                            "filter": ""
                        },
                        "fields": {
                            "title": {
                                "title": "Title",
                                "parser": "",
                                "width": "222",
                                "numeric": ""
                            },
                            "entries": {
                                "title": "Entries",
                                "parser": "",
                                "width": "222",
                                "numeric": "1"
                            },
                            "last_entry": {
                                "title": "Last Entry",
                                "parser": "if ($value) { $value = date(\"F j @ g:ia\",strtotime($value)); }",
                                "width": "222",
                                "numeric": ""
                            }
                        },
                        "actions": {
                            "entries": "{\"name\":\"Entries\",\"class\":\"icon_view\",\"route\":\"entries\",\"function\":\"\"}",
                            "export": "{\"name\":\"Export\",\"class\":\"icon_export\",\"route\":\"export\",\"function\":\"\"}",
                            "edit": "on",
                            "delete": "on"
                        },
                        "related_form": null,
                        "preview_url": "",
                        "exclude_from_search": "",
                        "id": "views-15c9cf24c0c358"
                    }
                ],
                "actions": [
                    {
                        "route": "",
                        "in_nav": "on",
                        "class": "list",
                        "name": "View Forms",
                        "form": null,
                        "view": "views-15c9cf24c0c358",
                        "report": null,
                        "level": "0",
                        "position": "3",
                        "0": "route",
                        "id": "actions-15c9cf24c0f819",
                        "module": "modules-15c9cf24c01f2e"
                    },
                    {
                        "route": "add",
                        "in_nav": "on",
                        "class": "add",
                        "name": "Add Form",
                        "form": null,
                        "view": null,
                        "report": null,
                        "level": "0",
                        "position": "2",
                        "0": "route",
                        "id": "actions-15c9cf24c19adf",
                        "module": "modules-15c9cf24c01f2e"
                    },
                    {
                        "route": "settings",
                        "in_nav": "on",
                        "class": "server",
                        "name": "Settings",
                        "form": null,
                        "view": null,
                        "report": null,
                        "level": "2",
                        "position": "1",
                        "0": "route",
                        "id": "actions-15c9cf24c2d77a",
                        "module": "modules-15c9cf24c01f2e"
                    }
                ],
                "forms": [],
                "embeddable-forms": [],
                "reports": [],
                "embed_forms": []
            }
        ],
        "templates": [
            {
                "id": "com.fastspot.form-builder*btx-form-builder",
                "name": "Form Builder",
                "module": null,
                "resources": [
                    {
                        "id": "page_header",
                        "title": "Page Header",
                        "subtitle": "",
                        "type": "text",
                        "options": []
                    },
                    {
                        "id": "page_content",
                        "title": "Page Content",
                        "subtitle": "",
                        "type": "html",
                        "options": []
                    },
                    {
                        "id": "form",
                        "title": "Form",
                        "subtitle": "",
                        "type": "com.fastspot.form-builder*form-builder-picker",
                        "options": {
                            "list_type": "db",
                            "allow-empty": "No",
                            "pop-table": "btx_form_builder_forms",
                            "pop-description": "title",
                            "pop-sort": "`title` ASC"
                        }
                    },
                    {
                        "id": "emails",
                        "title": "Email Addresses",
                        "subtitle": "(to send submissions notifications to \u2014 separate with commas)",
                        "type": "textarea",
                        "options": []
                    },
                    {
                        "id": "thank_you_page_header",
                        "title": "Thank You Page Header",
                        "subtitle": "",
                        "type": "text",
                        "options": []
                    },
                    {
                        "id": "thank_you_page_content",
                        "title": "Thank You Page Content",
                        "subtitle": "",
                        "type": "html",
                        "options": []
                    }
                ],
                "level": "0",
                "routed": "on",
                "extension": "com.fastspot.form-builder",
                "position": "1"
            }
        ],
        "callouts": [],
        "settings": [],
        "feeds": [],
        "field_types": [
            {
                "id": "com.fastspot.form-builder*form-builder-picker",
                "name": "Form Builder Form",
                "use_cases": {
                    "templates": "on",
                    "modules": "on",
                    "callouts": "on",
                    "settings": "on"
                },
                "self_draw": "on",
                "extension": "com.fastspot.form-builder"
            }
        ],
        "tables": {
            "btx_form_builder_entries": "CREATE TABLE `btx_form_builder_entries` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `form` int(11) NOT NULL,   `data` longtext NOT NULL, `hash` varchar(255) NOT NULL DEFAUOLT '',  `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `ip` varchar(255) NOT NULL DEFAULT '',  PRIMARY KEY (`id`),   KEY `form` (`form`),    FOREIGN KEY (`form`) REFERENCES `btx_form_builder_forms` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8",
            "btx_form_builder_fields": "CREATE TABLE `btx_form_builder_fields` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `form` int(11) NOT NULL,   `column` int(11) NOT NULL,   `alignment` char(5) NOT NULL,   `type` varchar(255) NOT NULL DEFAULT '',   `data` longtext NOT NULL,   `position` int(11) NOT NULL,   PRIMARY KEY (`id`),   KEY `form` (`form`),   KEY `column` (`column`),   KEY `position` (`position`),    FOREIGN KEY (`form`) REFERENCES `btx_form_builder_forms` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8",
            "btx_form_builder_forms": "CREATE TABLE `btx_form_builder_forms` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `title` varchar(255) NOT NULL DEFAULT '',   `paid` char(2) NOT NULL DEFAULT '',   `base_price` float NOT NULL,   `early_bird_base_price` float NOT NULL,   `early_bird_date` datetime DEFAULT NULL,   `total_collected` float NOT NULL,   `entries` int(11) NOT NULL,   `limit_entries` char(2) NOT NULL DEFAULT '',   `max_entries` int(11) NOT NULL,   `scheduling` char(2) NOT NULL DEFAULT '',   `scheduling_open_date` datetime DEFAULT NULL,   `scheduling_close_date` datetime DEFAULT NULL,   `scheduling_before_message` longtext,   `scheduling_after_message` longtext,   `last_entry` datetime DEFAULT NULL,   PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8"
        }
    },
    "sql_revisions": {
        "26": [
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling` char(2) NOT NULL AFTER `max_entries`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_open_date` datetime NULL DEFAULT NULL AFTER `scheduling`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_close_date` datetime NULL DEFAULT NULL AFTER `scheduling_open_date`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_before_message` longtext NULL AFTER `scheduling_close_date`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_after_message` longtext NULL AFTER `scheduling_before_message`"
        ],
        "35": [
            "ALTER TABLE `btx_form_builder_entries` ADD COLUMN `hash` varchar(255) NOT NULL AFTER `data`",
            "ALTER TABLE `btx_form_builder_entries` MODIFY COLUMN `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `hash`"
        ],
        "36": [
            "ALTER TABLE `btx_form_builder_entries` ADD COLUMN `ip` varchar(255) NOT NULL DEFAULT '' AFTER `created_at`"
        ],
        "39": [
            "ALTER TABLE `btx_form_builder_entries` MODIFY COLUMN `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `data`",
            "ALTER TABLE `btx_form_builder_entries` DROP COLUMN `hash`",
            "ALTER TABLE `btx_form_builder_entries` DROP COLUMN `ip`",
            "ALTER TABLE `btx_form_builder_forms` DROP COLUMN `scheduling`",
            "ALTER TABLE `btx_form_builder_forms` DROP COLUMN `scheduling_open_date`",
            "ALTER TABLE `btx_form_builder_forms` DROP COLUMN `scheduling_close_date`",
            "ALTER TABLE `btx_form_builder_forms` DROP COLUMN `scheduling_before_message`",
            "ALTER TABLE `btx_form_builder_forms` DROP COLUMN `scheduling_after_message`"
        ],
        "40": [
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling` char(2) NOT NULL DEFAULT '' AFTER `max_entries`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_open_date` datetime NULL DEFAULT NULL AFTER `scheduling`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_close_date` datetime NULL DEFAULT NULL AFTER `scheduling_open_date`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_before_message` longtext NULL AFTER `scheduling_close_date`",
            "ALTER TABLE `btx_form_builder_forms` ADD COLUMN `scheduling_after_message` longtext NULL AFTER `scheduling_before_message`"
        ],
        "42": [
            "ALTER TABLE `btx_form_builder_entries` ADD COLUMN `hash` varchar(255) NOT NULL DEFAULT '' AFTER `data`",
            "ALTER TABLE `btx_form_builder_entries` ADD COLUMN `ip` varchar(255) NOT NULL DEFAULT '' AFTER `created_at`"
        ]
    }
}

#47 General » Upgrade Extension » October 14, 2022 11:53am

doon.mok
Replies: 4

Hello,

There is a new version of the form builder extension and we would like to upgrade through bigtree. When I go to View Extensions, form builder doesn't have the Ignore/Upgrade buttons. How often does bigtree check for newer versions and is there a way in bigtree to make it look for newer versions?

Thanks

Doon

#49 Feature Requests » Media Gallery - able to disable Upload or add to Files » September 8, 2022 12:57pm

doon.mok
Replies: 2

Right now the media gallery has two options to add a photo, Upload or Browse button. The issue with the Upload button is you really can't reuse that image again because it is not added to Files. To use that image again somewhere else, I would have to upload it through Files but then I have the same image in our cloud storage.

I think there are two options

1. Option to disable the Upload button and only have the Browse button.
2. When using the Upload button, add the image to Files, this way we can reuse it again.


Doon

#50 Re: Developer Help » Using the Events - Date Chooser field outside the Events module » March 28, 2022 1:47pm

For anyone that wants to use the field outside of the module. You will need to create your own field and copy draw.php, process.php and events.js. Move events.js to custom/admin/js folder.

Might be a better way but this worked for me.

Board footer

Powered by FluxBB

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