embed project not working #330
Comments
|
Could you provide more info of why this 500 status? Try to execute the code in a try/catch in order to get the exception message. |
It's return only blankpage and in network tab it show This page isn’t workinglocalhost is currently unable to handle this request.
|
|
I just installed the lib using:
Got a 500 error, here is why:
Turns out, composer added Embed's 3.4 instead of 4.0 because I run PHP 7.3 instead of 7.4 (which is a requirement for Embed 4). I guess it could be the same kind of problem you had. |
|
For v3, the docs are different: https://github.com/oscarotero/Embed/tree/v3.x |
|
I know, but I forgot I ran php 7.3, so I didn't notice embed 3.4 was installed, hence the instantiation error. Forcing 3.4 version in composer (and, of course, adapting the code) worked. That said, upgrading to php 7.4 and embed to 4.0 lead me to another issue, a syntax error in Embed.php:
I have absolutely no idea what happens here. Syntax is correct for php 7.4, I can confirm php 7.4 ran the code, but it still awaits for something else than the |


I created a folder name it embedcode in that folder I installed the embed/embed
I created a file embedcode/test.php and add the code
But I get
500 Internal Server ErrorFailed to load resource: the server responded with a status of 500 (Internal Server Error)The text was updated successfully, but these errors were encountered: