Comments (5)
Hey @wfendler, this is a common problem and one that depends entirely on how the server is configured. If you haven't already, upgrade to EA 0.3.4 which was released yesterday. This (finally) adds logging to the plugin which I can use to help diagnose the problem.
This behaviour indicates that the embedded asset JSON file can't be read for some reason, so craft.embeddedAsset.fromAsset(asset)
is returning null
. What that reason is really depends on your PHP and server configs. With 0.3.4 installed, try rendering one of your templates, then find the file craft/storage/runtime/logs/embeddedassets.log
and upload it here, or send it to me (benf) on Craft's Slack channel. Or you can go through the log yourself and see if you spot any errors.
from craft-embedded-assets.
Cool, looks like I've been using 0.3.4 the whole time. So I've got some logs but it looks like the only thing being logged is a bunch of [info] [plugin] Reading file with curl
. I'll send it over on Slack though in case I'm missing anything.
from craft-embedded-assets.
Just tried adding a new embed on the server and that's not working either. So the transfer of data isn't what went wrong. There's something up with the server environment. Anything come to mind that I should check into first?
Asset folder has 755
permissions. The json files inside of that are 664
.
When I look at the embed assets in the CP it's getting all of the titles right. So it must be reading those json files (although the thumbnail images are missing for the ones I've moved over).
I'm using ServerPilot + Digital Ocean.
Here's my basic server info from Craft:
Let me know if any of the php info would be helpful. Too long to upload. For now I'll continue to do some poking around to see what I can come up with. Thanks for any help!
from craft-embedded-assets.
When I look at the embed assets in the CP it's getting all of the titles right. So it must be reading those json files (although the thumbnail images are missing for the ones I've moved over).
Pretty sure titles are being pulled from the DB not from the json
from craft-embedded-assets.
After looking into this, I found the problem to be that the site url and server_name variables are different due to the fact I'm running Vagrant with port forwarding.
Basically, the readAssetFile
method is grabbing the site url localhost:8080
instead of the server_name set to localhost
. Because of that, curl can't find the file on the server.
Is it possible to use craft()->request->getServerName()
instead or fallback in some way?
from craft-embedded-assets.
Related Issues (20)
- UX: Moving of assets not possible HOT 2
- Limit What Volumes Can Use Embedded Assets HOT 1
- Limit Asset Selection by Type HOT 1
- Limit urls by domain (example youtube only) HOT 2
- Direct vimeo urls in Craft 4.4.5 don't work HOT 1
- Google maps embed only returns a link HOT 2
- Error embedding Instagram: max 10 redirects followed HOT 1
- Twitter embeds HOT 1
- Failed queue jobs for Checking whether Instagram embedded asset needs to be refreshed
- How to use in module/plugin HOT 1
- Wistia embed support? HOT 7
- Can't embed youtube/vimeo videos now HOT 2
- TypeError: Cannot read properties of undefined (reading 'folderId') HOT 10
- Include Inputs to capture required Craft asset field values HOT 2
- YouTube embeds are now being added as Link type instead of Video HOT 4
- update dependency on "embed/embed" to version v4.4 or higher HOT 1
- Update embed/embed to v4 HOT 1
- Aspect ratio is in an unexpected form HOT 2
- EmbeddedAssetImage's size attribute has an unexpected value HOT 4
- Embed\Exceptions\InvalidUrlException: Invalid url ... (Status code 429) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-embedded-assets.