#26 Re: Developer Help » Events 1.2 with BigTree 4.5 » January 5, 2023 4:55pm

Events 1.2 will work fine with BigTree 4.5 but will have warnings / errors (possibly) in PHP 8. It could be manually updated to work with PHP 8, you'll just have to track down the errors and resolve them (they're usually just issues with skipping checks on non-existent arrays).

Events v2 has a fairly similar database structure as Events v1 with the exception of recurring events being handled very differently (through recurrence rules) so any events that are setup to be recurring will not be able to easily be migrated over without losing their recurrence. On the template side the event instances are returned as objects instead of arrays and fields in the database that are not in the default Events v2 schema for btx_events_events will be added to the AdditionalFields property array.

#27 Re: Bug Reports » TinyMCE Not Showing » December 9, 2022 11:02am

If you're using a custom HTML loader in /custom/admin/layout/_html-field-loader.php then you'll likely need to update the TinyMCE init to use TinyMCE 6's selector structure.

You can compare the files in 4.4-devel and 4.5-devel to see what's changed in their init (and plugins):

https://github.com/bigtreecms/BigTree-C … loader.php
https://github.com/bigtreecms/BigTree-C … loader.php

#28 Re: Bug Reports » TinyMCE Not Showing » December 8, 2022 4:29pm

TinyMCE's cache is notoriously sticky. If clearing browser's cache doesn't work then it's likely a custom override somewhere that's telling BigTree to use a different version of TinyMCE.

#29 Re: General » New SKR Pro boards and TFT 35 screen » November 2, 2022 2:52pm

Hi Rand,

I think you have the wrong BigTree! This is a forum for the content management system, not the board manufacturer smile

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

Ah, yes that's used very frequently now in BigTree 4.5 to avoid all the warnings on undefined variables smile

#31 Re: Developer Help » Upgrade Form Builder - http 500 error » October 18, 2022 7:00pm

Glad you figured it out! I think BigTree 4.5 requires PHP 7.4 if you're using AWS dependencies. I'm not sure which part of Form Builder in particular is requiring PHP 7 though.

#32 Re: General » Upgrade Extension » October 14, 2022 12:04pm

Thanks, that cleared up the issue! It looks like the extension's manifest revision got out of whack at some point and went from 43 to 41 and then back up to 42. I've bumped it to 50 so you should now see the update load for you in BigTree.

#33 Re: General » Upgrade Extension » October 14, 2022 11:55am

It should check on every load of the extensions page. What version of Form Builder are you currently on? Can you drop your manifest.json file from the extension in here? Thanks!

#34 Re: Feature Requests » Media Gallery - able to disable Upload or add to Files » September 8, 2022 3:16pm

Hi Doon,

Both of those options come with caveats which is why Media Gallery behaves the way it does now. Having a "managed files" option tie into media gallery uploads requires all of the crops across the site to be the same (or at the very least some kind of central management of crops). Since we don't support the idea of creating a specific crop size and assigning it to a field, we can't be sure that a crop exists for the media gallery choice. That's why when you pick a file from "Browse..." it creates a copy of it and all new crops. Likewise, that's why when adding a new file it doesn't push it to the Files system (though pushing it to Files also has issues with the permissions model — your field would need to specify which folder it was pushing to and your user would need permission to that folder).

I agree that it's not ideal and if we had a more robust way to manage crops as a system-wide rather than field-wide feature it could be wrangled.

#35 Re: Developer Help » Creating new template and database access » August 10, 2022 12:04pm

This seems like it is likely a file permissions issue. Are you using git for version control? If so, you likely do not want to be adding new templates in the live environment but rather want to setup a local environment from which you can commit your changes (which in this case would be in /custom/json-db/templates.json). You can check the file permissions by going to the Developer section and choosing Site Status. That will tell you if there are any directories that BigTree will need write access to that are not writable.

Accessing the database isn't something I can answer unfortunately as there could be many ways in which the database connection could be setup. In AWS you're likely either running AuroraDB or MySQL/MariaDB via RDS. The connections could be restricted to only intra-network connections in which case you'd need to have an EC2 instance as an SSH jumping off point to connect externally.

#36 Re: Developer Help » Footer text/credit description » August 4, 2022 8:06pm

So if you’re outputting the Simple (or non-simple) HTML field into a <p> tag it’s going to have a nested <p> which is going to cause issues for you. If you want to allow certain tags but not others you could use strip_tags on the value. An example that only allows links, bold, and italic:

<p class=“credit”><?=strip_tags($value, “<em><strong><a>”)?></p>

Note that the code above is getting fancy quotes because I’m on my iPad and it’s being silly. You obviously wouldn’t use fancy quotes in the code smile

#37 Re: Developer Help » PHP 8.1 Support » August 2, 2022 10:33am

Yes, it will definitely be ready before then. I am hoping for the next few weeks with the end of August being the latest. PHP 8 introduced a lot of breaking changes (things like running "count" on an empty variable are now errors rather than warnings) so currently it does not run on PHP 8 or 8.1.

#38 Re: Developer Help » PHP 8.1 Support » August 1, 2022 10:23am

BigTree 4.5 will support PHP 8.1 — it's currently under active development, mostly finding all the edge cases where the tightening of warnings/errors in PHP 8 causes issues.

#39 Re: Bug Reports » File Browser > Search Causing Forbidden Error » July 28, 2022 3:49pm

It's hard to say — mod_security throws a lot of rules at the wall and hopes it catches attacks (while causing a bunch of problems in the process). You'd have to check the security logs and find out what rule the search was triggering and then disable that specific rule.

#40 Re: Bug Reports » File Browser > Search Causing Forbidden Error » July 28, 2022 2:07pm

Do you have anything in your Apache logs about the forbidden error? My best guess is that you have something like mod_security running that has flagged the request as being suspicious and is stopping it.

#41 Re: Developer Help » Local dev cloud storage issues » May 4, 2022 2:15pm

Sorry I missed this post (got sent to spam). resource:// usually means it's referencing something in the bigtree_resources table but that's usually an ID (e.g. resource://15). I can't say I've seen a resource:// URI targeting the S3 path before so I'm not sure what's going on there. It's possible a misconfiguration with the environment.php file causing weird URIs.

#42 Re: Developer Help » header video » April 11, 2022 8:14pm

Generally with header videos we just have the CMS editor drop in the URL of an MP4 file to play. I'm not super great with the CSS behind stretching them perfectly but it's just a <video> tag normally that's stretched across the page and then content is laid overtop it.

#43 Re: Bug Reports » reCaptcha - Form Builder/cURL » March 29, 2022 4:22pm

Sorry, just realized this was never responded to! If the response is empty it's either:

cURL is failing (maybe some kind of SSL error connecting to Google's servers) or the response you're getting is not a valid JSON response. This could be incorrect reCAPTCHA keys or something of that sort or possibly that your IP is being banned by Google for whatever reason.

#44 Re: Developer Help » Using the Events - Date Chooser field outside the Events module » March 29, 2022 4:03pm

I think this is likely due to the field relying on extension context to function properly. Glad you figured out a hack that worked for you! smile

#45 Re: Developer Help » View stuck on the cached value » March 29, 2022 4:02pm

If I had to take a guess I'd say the filter function is crashing. It's run in an eval() statement so it will fail silently but the record could miss getting into the table.

#46 Re: Bug Reports » TinyMCE icons not showing » February 28, 2022 5:35pm

This is usually do to the server having incorrect MIME type encoding for SVGs if I remember correctly. I would check your browser's network inspector and see if there's something weird coming through — I can't remember if TinyMCE uses SVG icons or an icon font, either could be an issue!

#47 Re: Developer Help » Cannot install example site » February 23, 2022 9:21am

What browser are you using to do the install? The example site files are in /core/example-site/ but you'll also need to import the database dump from /core/setup/example-site.sql

#48 Re: Developer Help » SOLVED: Page versioning + New question » February 14, 2022 8:14pm

That's definitely a bug! I'm slowly working my way toward a release that supports PHP 8 and I'll be sure to get this in as well.

#49 Re: Developer Help » Page versioning » December 30, 2021 10:18am

Hi Tushar,

Published Revisions will only ever show the currently published page (it doesn't show previously published revisions since that would be ALL the past revisions). If you aren't seeing a list of previous page states it's possible that for some reason there's a database error when inserting into the bigtree_page_revisions table (maybe a custom override somewhere or a missed SQL migration?).

I'd see if the table structure matches what a fresh BigTree install provides.

#50 Re: Developer Help » Page versioning » December 27, 2021 5:17pm

BigTree natively supports this paradigm! Go to Pages -> edit the page you want to manage revisions for -> Revisions in the sub-menu -> Click the Save icon. That will allow you to permanently save a revision with a description for later re-use. You could use this to have seasonal variations on a page. After it's saved you can click the "New Draft" button next to the saved revision and it will copy that revision's content over to the pending state of the page. After you verify it looks good you just publish it like you would any pending page state.

Board footer

Powered by FluxBB

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