XF2 [8WR] XenMedio 2 (Media) PRO

XF2 [8WR] XenMedio 2 (Media) PRO [Paid] 2.1.1.5

No permission to buy ($40.00)
Hi,
I just started running into an issue with adding media to the gallery. Everything else works, but there's an error related to grabbing the thumbnail. Any help in figuring it out would be greatly appreciated.

ErrorException: [E_WARNING] copy(): SSL context creation failure in src/addons/EWR/Medio/Repository/Media.php at line 186
  1. XF::handlePhpError()
  2. copy() in src/addons/EWR/Medio/Repository/Media.php at line 186
  3. EWR\Medio\Repository\Media->setMediaFromImage() in src/addons/EWR/Medio/Pub/Controller/Media.php at line 597
  4. EWR\Medio\Pub\Controller\Media->actionSave() in src/XF/Mvc/Dispatcher.php at line 350
  5. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
  6. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  7. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  8. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
  9. XF\App->run() in src/XF.php at line 391
  10. XF::runApp() in index.php at line 20
 
It's happening with any youtube video I try to add. Here's one of them.
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
If I recall, YouTube changed their API a few months ago to make it so that you can no longer connect to it if you aren't behind SSL.
 
We are definitely are behind ssl and the last time I was able to add videos was 1/3. That's pretty recent. I'll ask the server hosts to take a look at the set up and see if something has gone weird. What do you think might be causing it to think that it's not ssl?
 
Hi. Wanted to update you. Something went weird with the SSL module on Apache. Restarting fixed it. Thanks for your help in figuring that out. It's working again.
 
I have a lot of Discord bots that will watch youtube channels you add to them, and then will post the video directly to the Discord.

Would you be able to add this feature to the plugin? Basically, someone links their account on the website, and then any video they post will auto-post to the site.

I would love to see this added if possible :)
 
i just had to replace our you tube api again.....while i was in there, i sorted that hack for the instructional comment i was after, but then i noticed errors streaming into the dev tools console after only a few seconds....perhaps why they keep blocking the api after so long?

either way any ideas about this or how to avoid it? did i miss a config somewhere?

thank you

EDIT: well.....nevermind! i quickly realized it was brave browser throwing a hand in things...no worries...it would be nice to know the you tube api will hold tho, not even sure how long it was down this time....people dont even want to be bothered to report issues sometimes, guess i have to just keep checking...

errors you tube.png
 
Last edited:
I am having some issues again. I doubt it is this addon and suspect it is something with the hosting being used. A few details have been changed but the essential data was not. What might cause this on a different host? The site files are copied and verified. From what I can tell the database transfer is also an exact duplicate. I suppose it could be UTube and their API again but not sure.


Code:
    XF\Db\Exception: MySQL query error [1366]: Incorrect string value: '\xF0\x9F\x94\x94 S...' for column `erterh34gdrt3-31373195c4`.`ewr_medio_media`.`media_description` at row 1 src/XF/Db/AbstractStatement.php:228

    Generated by: Me_Today Feb 18, 2021 at 9:48 PM

Stack trace

INSERT  INTO `ewr_medio_media` (`service_id`, `service_val1`, `service_val2`, `category_id`, `media_title`, `media_duration`, `media_description`, `user_id`, `username`, `media_date`, `media_state`, `media_comments`, `media_views`, `media_custom1`, `media_custom2`, `media_custom3`, `media_custom4`, `media_custom5`, `reaction_score`, `reactions`, `reaction_users`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL query err...', 1366, '22007')
#1 src/XF/Db/Mysqli/Statement.php(77): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1366, '22007')
#2 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(218): XF\Db\AbstractAdapter->query('INSERT  INTO `e...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1510): XF\Db\AbstractAdapter->insert('ewr_medio_media', Array, false)
#5 src/XF/Mvc/Entity/Entity.php(1242): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#7 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#8 src/addons/EWR/Medio/Pub/Controller/Media.php(560): XF\Mvc\FormAction->run()
#9 src/XF/Mvc/Dispatcher.php(350): EWR\Medio\Pub\Controller\Media->actionSave(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('EWR\\Medio:Media', 'Save', Object(XF\Mvc\RouteMatch), Object(EWR\Medio\Pub\Controller\Media), NULL)
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(EWR\Medio\Pub\Controller\Media), NULL)
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#14 src/XF.php(488): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(66) "/ewr-medio/video name-official-music-video.0/save"
  ["referrer"] => string(45) "https://mywebsiteaddress.com/ewr-medio/submit"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(13) {
    ["media"] => array(5) {
      ["service_id"] => string(2) "16"
      ["service_val1"] => string(11) "A number was here"
      ["service_val2"] => string(0) ""
      ["category_id"] => string(2) "13"
      ["media_title"] => string(52) "Video name here"
    }
    ["description_html"] => string(3737) "<p>Watch the official music video for A Video .</p><p><img class="smilie smilie--emoji fr-fic fr-dii" alt="🔔" title="Bell&nbsp; &nbsp; :bell:" src="https://cdn.jsdelivr.net/joypixels/assets/6.0/p64/1f514.png" data-shortname=":bell:">&nbsp;Subscribe to the channel: https://bit.ly/Yfesefse</p><p><br></p><p>Follow fsefse:</p><p>Facebook- https://on.fbsefs.meesfe</p><p>Twitter- https://efsefbit.lesfs</p><p>Spotify- https://bit.ly/1hAfsefsees</p><p>Instagram- https://instasefsefgram.com/avefsfse</p><p><br></p><p>Af is a rock band renowned for their hits “So </p>"
    ["duration"] => array(3) {
      ["hours"] => string(1) "0"
      ["mins"] => string(1) "6"
      ["secs"] => string(2) "16"
    }
    ["prefix_id"] => string(1) "0"
    ["node_id"] => string(1) "0"
    ["keywords"] => string(246) "A, a7x, Nightmare, warner records"
    ["usernames"] => string(0) ""
    ["image"] => string(52) "https://i.ytimg.com/vi/94bGzWdfgdgrdgdrgdrgdrdgyHbu0/maxresdefault.jpg"
    ["watch_media"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(17) "/ewr-medio/submit"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
I have done that to no avail. What I am finding is that if I remove all text from the description box or add a simple sentence or word it seems to work.
 
Did you change the columns to utf8mb4 as well?
Jaxel, I will have to check that. What I can say is at this point the issue "might" be resolved. It has been less of an issue as the day has gone. I am thinking part of that might be the propagation of the ssl certificate and YT finally calming down about it. I will check the columns to see if there is an issue though to be sure.
 
Jaxel, I will have to check that. What I can say is at this point the issue "might" be resolved. It has been less of an issue as the day has gone. I am thinking part of that might be the propagation of the ssl certificate and YT finally calming down about it. I will check the columns to see if there is an issue though to be sure.
No. It has to do with utf8mb4 characters, such as emojis or japanese text.

XF2 defaults all tables to utf8mb4. XF1 did not.
 
No. It has to do with utf8mb4 characters, such as emojis or japanese text.

XF2 defaults all tables to utf8mb4. XF1 did not.
Interesting. This is a XF2 forum but many posts are from the original version I am sure. It seems you might be correct in that I seem to have narrowed down the issue to an " 🔔 " that has been in the videos I am trying to include from this group.

Having reviewed further, I modified the database yet again and it seems to be working for now. Lets see what tomorrow brings... ;)
 
Last edited:
hello,
hopefully someone can help with this.....i am trying to sort out uploading playlists....

i was able to upload a playlist, but effectively all it has done is make a bulk upload, then left them as individual medias.

is there a way to retain the playlist structure as it existed on youtube etc?

dreading any manual functions basically by these days, hopefully so, that would great...

thank you
 
Just wondering is there a way to remove the "categories" from the medio page? and also get support for twitch clips (not just vods)
 
Last edited:
Top Bottom