why do i get a error 500 when using two instances of YouTube snippet?
Linux server, MODx 1.0.4
-
☆ A M B ☆
- 3,141 Posts
I always get 500 errors when messing around with the htaccess file.... sure it’s got nothing to do with something like that?
Is there any error in Reports -> System events?
-
☆ A M B ☆
- 3,141 Posts
Quote from: ganeshXL at Jul 01, 2010, 10:30 AM
I can’t see the big advantage of such a snippet anyway: Youtube provides already a copy-and-paste method to include the video wherever you want. (The "embed" button)
It doesn’t get much easier than copy and paste, surely? 
Ever tried pasting in the RTE?
You don’t want clients to open the html view, do you?
Quote from: ganeshXL at Jul 01, 2010, 10:24 AM
I get a verbose error message:
Fatal error: Cannot redeclare getidfromurl()
That sounds like the problem then...
-
☆ A M B ☆
- 24,524 Posts
All snippets should have any functions they declare enclosed in an appropriate function_exists conditional expression.
http://www.php.net/manual/en/function.function-exists.php