kerryoco
Forum Replies Created
-
Forum: Plugins
In reply to: [Threepress] wordfence missmatchah thanks. It seems to be picking up the differences between files with different letter-cases in the filename, so it’s actually ok. (PLAYER.js, and Player.js). The browsers treat those as separate files but Wordfence isn’t. I’m not sure exactly why your Wordfence is showing that but mine isn’t (I have it installed on a bunch of sites too). I’ll make a note to modify the filenames with the next update to avoid the warning though.
Do you host on Windows by any chance? If I remember correctly, Windows doesn’t use case in filenames, and if Wordfence is somehow using the OS for filenames, that might be related, and something I should think more about as well
Forum: Plugins
In reply to: [Threepress] Sorry, you are not allowed to upload this file type.Hm, .glb uploads are enabled by the plugin. Specifically, “glb” is added to the list of files allowed to upload with ‘application/octet-stream’ mime type.
Possibilities are
– sure the plugin is enabled?
– plugin conflict
– invalid glb file
I can link you a valid glb if you want to test an uploadForum: Plugins
In reply to: [Threepress] Disable on pages not usedI got inspired and went ahead and did this today. You can find the new Global Settings tab in the Threepress menu item. I’ve tested it on 3 sites now; let me know any issues.
Forum: Plugins
In reply to: [Threepress] Disable on pages not usedYea I’m looking into this. I’m guessing that what you’re seeing is the flash of the ajax loading gif? I noticed that too recently, and hadn’t before, so I’m going to find out why.
I started to create a ‘include on pages’ section in the Threepress admin as well, but I’m not sure that’s as important because Threepress is almost all js as opposed to php logic. So after the first load, it’s cached on other page visits and should be loading in milliseconds from your own browser. But a conditional loader would still be nice to have.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictSorry it’s probably an issue with the Threepress HDRI implementation; it was never completed as fully as it should have been. You can implement your own using the same method that you would add your own GUI, but if you check out the docs for HDRI in threejs you’ll see it’s very finnicky to get right.
The GUI is a little easier. I was planning at some point to allow custom js adds, but in the meantime, you can use a plugin like Header Footer Scripts to inject your own. First add that CDN link to the dat.gui script. And then also add a script of your own. If you can, find another way to test, even if it’s just running the script in the console, to make it go faster. If you get the dat.gui included on your site, I could even do a sample of the rest on your page probably.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictYour galleries on the Threepress page will be in the global
THREEPRESS.galleriesarray. To access your model you have to get a little creative, but you can dig around in the console until you find it.It will be something like:
var my_model = THREEPRESS.galleries[0].SCENE.children[0]Forum: Plugins
In reply to: [Threepress] Plugin ConflictBlender is best for exports yea. Latest versions have glb convert / export built in, and I’m not an expert on the various settings, but most material export settings are available in the export dialogue.
For the parameters, you probably want this mini library. It’s the same you saw earlier – “dat.gui”.
You make “a GUI”, “a folder”, and then when you tag / add the properties in they become available automatically as inputs if I remember correctly.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictHmm, I’ll have to check that out. That could very well be a WP.com limitation. Threepress is coded to ‘unlock’ glb uploads which hasn’t been an issue on any self-hosted I’ve been aware of, but I wouldn’t be surprised if the WP.com servers forbid that. I’ll make a note to check it; got to step away for a bit now though.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictAha, 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.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictDo 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.
Forum: Plugins
In reply to: [Threepress] Plugin ConflictI 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.
Forum: Plugins
In reply to: [Loco Translate] Error in plugin pageI have 2 WordPresses running php 8.1. One is a live server, one is my PC. My PC is:
- DOM/XML API Version 20031129
- libxml Version 2.9.13
My server is same everything except libxml 2.9.10
My PC, the newer libxml, throws the fatal error, but the server does not.
yea same error on php 8.1.2 here.
Also unrelated, some hosts may be missing:
Call to undefined function mb_internal_encoding()if you have sudo access you can do install:
sudo apt-get install php-mbstringbut many hosts may be unable to do that
Forum: Plugins
In reply to: [Threepress] Cant’ get started(your shortcode is valid – I did copy it onto my site, change the model id to one of mine, and it worked fine)
Forum: Plugins
In reply to: [Threepress] Cant’ get startedHi, was the plugin turned off for some reason perhaps? The shortcode that you’re seeing there should be getting converted into data if the plugin is active, so it should never even appear in the HTML (it’s not sensitive data though).
My only other guess would be that the plugin is encountering an error in trying to parse the shortcode when you load the page, but I’m only saying that because this would be the fallback output. I don’t have a guess as to what the error actually would be. You can install the plugin “Error Log Monitor” to display errors in your Dashboard as you try to load the page, and if you see the name Threepress in there then let me know.