• I tried to create a gallery with the flying car object as a sample, I can see the car in the preview (eyeball) for the gallery in the plugin UI, but when I paste the shortcode into a page, nothing appears. But I noticed all of my other tools that use charts.js via CFF plugin (calculated fields forms) were broken. So by deactivating the threepress plugin my calculated fields all re-appeared. I suspect there is some kind of js conflict going on between CFF and Threepress. But when I deactivated the CFF plugin, I cannot get the Threepress gallery shortcode to render anything after several attempts. I wonder if there is any further guidance you could offer? I will try this also on another website (where I will also deactivate the CFF I am running there also). I’m keen to get this working as I’d like to start scripting some parametrically-editable js polyhedra, but I can’t even get the canvas or the sample object to render yet :/ Thanks in advance. Andy

    • This topic was modified 9 months, 2 weeks ago by andyro.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author kerryoco

    (@kerryoco)

    I just tested out those 3 components on one page too, and so far it seems ok.

    https://oko.nyc/threepress-samples/

    CFF plugin, with a chart.js Chart, and Threepress galleries. Only difference may be that my Chart is not generated by CFF; I’m not familiar with that route. I was just working with Chart.js myself anyway though so I included one from scratch.

    Can you view your javascript console for errors ? If there’s no red messages there you can try installing ‘Error Log Monitor’ to get a log of PHP errors.

    Thread Starter andyro

    (@andyro)

    Here is what my js console looks like with both CFF and Threepress plugins active. The ‘Affordability Pie’ page (https://openbuilding.ca/tools/affordability-pie/) fails to call the script somehow – this goes away when I deactivate threepress… and also attached is the block editor view of the threepress gallery I’m trying to paste into this page: https://openbuilding.ca/tools/threepress-test/ I’ll try loading the ‘Error Log Monitor’ you suggest. Thanks for looking into this.

    • This reply was modified 9 months, 2 weeks ago by andyro.
    Thread Starter andyro

    (@andyro)

    PHP error log just showed a bunch of deprecated WooCommerce settings which is odd since the plugin is up to date in a brand new install of the WP 2024 theme…

    Thread Starter andyro

    (@andyro)

    Non-woo-commerce related errors.

    •  Jan 06, 18:12:13WPComSH: headstart: wpcomsh_apply_headstart_terms: Could not find the headstart annotation for theme [twentytwentyfour]. locale=[en_US] fallback_locale=[en]
    •  Jan 10, 16:03:23Cron reschedule event error for hook: action_scheduler_run_queue, Error code: invalid_schedule, Error message: Event schedule does not exist., Data: {“schedule”:”every_minute”,”args”:[“WP Cron”],”interval”:60}
    •  Jan 11, 15:01:34WPComSH: headstart: wpcomsh_apply_headstart_terms: Could not find the headstart annotation for theme [twentytwentyfour]. locale=[en_US] fallback_locale=[en]
    Thread Starter andyro

    (@andyro)

    But here’a an example of my CFF charts.js and CFF shortcode showing nothing when threepress is active: https://openbuilding.ca/tools/affordability-pie/

    Plugin Author kerryoco

    (@kerryoco)

    Do you perhaps have a bundling / minifying / caching option active somewhere? It looks like the site is attempting to bundle Threepress along with jquery. I opened up one of scripts throwing an error and it was a combination of the those, which is not going to work. It looks like somehow your site serves resources out of a “_static” endpoint, so the site probably attempts to make super-efficient bundles of js files, and then serve them all together out of there, but somehow it’s mashing things together that shouldn’t be. (That’s my 75% confidence guess).

    That “minifying” could come from a theme, plugin, or potentially even your host might offer that. Does that ring a bell? Let me know any thoughts, I’d be happy to get to the bottom of it in any case.

    Thread Starter andyro

    (@andyro)

    The site is hosted on wordpress.com as a ‘creator’ level package. I will shut off some plugins and see if that helps. There is a bunch of jetpack stuff running by default…

    Thread Starter andyro

    (@andyro)

    I shutoff jetpack performance accelerator: “Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.”

    Thread Starter andyro

    (@andyro)

    That was it. Switching back on plugins (flying car showed up finally). Ugh, nope that wasn’t it – it is some other plugin. Isolating now.

    • This reply was modified 9 months, 2 weeks ago by andyro.
    Thread Starter andyro

    (@andyro)

    It was a ‘Page Optimize’ plugin installed by default (Automattic): “Optimizes JS and CSS for faster page load and render in the browser.”

    Plugin Author kerryoco

    (@kerryoco)

    Aha, good to know the cause at least. I don’t think there will be any fix other than disabling that particular one. The issue is Threepress uses unbundled js modules. This is an increasingly used practice, but for it to work with these optimizers I would need to bundle all the Threepress routes into separate bundles, and I likely won’t have time for that.

    If you need any help getting the parametric stuff started feel free to ask.

    Thread Starter andyro

    (@andyro)

    Thank you. Well, ultimately my goal is to use the math of NJ Wildberger (Rational Trigonometry) as a computationally more efficient method to describe/render polyhedra with no trailing decimals or rounding. What I eventually want to do is use the CFF interface to allow for parametric sliders to manipulate the polyhedra values to warp and morph the polyhedra. I’d start with the classic Tetraktys series… I need to find an authoring tool that will allow me to write polyhedra this way however, I’ve done so in Graphisoft ArchiCad but it limits my 3D export formats. Other authouring tools like Blender will have their own conventional trig methods to define polyhedra, I will probably need to hand code the stuff… or start from a conventional authoring tool’s methods and then rip out the math bits and swap in the rational trig methods.

    • This reply was modified 9 months, 2 weeks ago by andyro.
    Thread Starter andyro

    (@andyro)

    I’ll post a PDF here that outlines the basics… for more info on the topic look up Quadrays, Tom Ace (C++ version), Kirby Urner, Bucky Fuller, Caltrops, etc. Gerald DeJong put me on the Wildberger path… https://openbuilding.ca/wp-content/uploads/2024/02/Graphisoft-Days-Geometry-Section.pdf

    • This reply was modified 9 months, 2 weeks ago by andyro.
    • This reply was modified 9 months, 2 weeks ago by andyro.
    Thread Starter andyro

    (@andyro)

    Great demo of where I’d like to get to w. parametric controls: https://threejs.org/examples/#webgl_geometry_sdf

    Thread Starter andyro

    (@andyro)

    Also – I’m a little stumped on whether I can use the standard WP media uploader to put .glb files – doesn’t seem to want to. Will I need to ftp them up? (per: https://wordpress.com/support/accepted-filetypes/) – oh nevermind – you solved that with your model UI page – got it!

    • This reply was modified 9 months, 2 weeks ago by andyro.
    • This reply was modified 9 months, 2 weeks ago by andyro.
Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Plugin Conflict’ is closed to new replies.