xoops forums

oswaldo

Quite a regular
Posted on: 5/11 0:39
oswaldo
oswaldo (Show more)
Quite a regular
Posts: 205
Since: 2008/8/22
#1

Xoopstube 1.08 beta 1 Error when deleting video

I have the next error when I tried to delete a video

Error: Error: Cannot use object of type mysqli_result as array en el archivo /modules/xoopstube/admin/main.php lĂ­nea 466

Xoops 2.10
PHP 7.4
Xoopstube 1.08 beta1

zyspec

Module Developer
Posted on: 6/16 21:51
zyspec
zyspec (Show more)
Module Developer
Posts: 1085
Since: 2004/9/21
#2

Re: Xoopstube 1.08 beta 1 Error when deleting video

You can temporarily fix this by changing rows 465-466 from:
[$lid$title] = $GLOBALS['xoopsDB']->fetchrow($result);
            
$item_tag $result['item_tag'];

to the single line:
[$lid$title$item_tag$vidid] = $GLOBALS['xoopsDB']->fetchrow($result);


which should work (although I didn't try it).... I'll add this as an issues for the Beta 2 code on GitHub since it looks like it's still an issues there too.

Mamba

Moderator
Posted on: 6/17 22:16
Mamba
Mamba (Show more)
Moderator
Posts: 11155
Since: 2004/4/23
#3

Re: Xoopstube 1.08 beta 1 Error when deleting video

Thanks, Zyspec for the fix! It has been added to the current version at:
https://github.com/mambax7/xoopstube

Oswaldo, you can test it from there. Once confirmed that it works, I'll merge it into:
https://github.com/XoopsModules25x/xoopstube/
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

oswaldo

Quite a regular
Posted on: 6/21 18:38
oswaldo
oswaldo (Show more)
Quite a regular
Posts: 205
Since: 2008/8/22
#4

Re: Xoopstube 1.08 beta 1 Error when deleting video

Thanks zyspec and Michael for your help

oswaldo

Quite a regular
Posted on: 6/21 21:01
oswaldo
oswaldo (Show more)
Quite a regular
Posts: 205
Since: 2008/8/22
#5

Re: Xoopstube 1.08 beta 1 Error when deleting video

It works fine but I can't get the video online, it doesn't change the offline icon (X) to green

Resized Image
Resized Image

Mamba

Moderator
Posted on: 6/22 12:22
Mamba
Mamba (Show more)
Moderator
Posts: 11155
Since: 2004/4/23
#6

Re: Xoopstube 1.08 beta 1 Error when deleting video

Did it work before the recent change?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

oswaldo

Quite a regular
Posted on: 6/22 19:31
oswaldo
oswaldo (Show more)
Quite a regular
Posts: 205
Since: 2008/8/22
#7

Re: Xoopstube 1.08 beta 1 Error when deleting video

Yes, Michael I can delete the video now
only I can't activate the video but this already happened.

Mamba

Moderator
Posted on: 6/23 2:38
Mamba
Mamba (Show more)
Moderator
Posts: 11155
Since: 2004/4/23
#8

Re: Xoopstube 1.08 beta 1 Error when deleting video

Oswaldo, I see the issue. I'll fix it over the weekend, unless somebody beats me to it
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

oswaldo

Quite a regular
Posted on: 6/24 2:33
oswaldo
oswaldo (Show more)
Quite a regular
Posts: 205
Since: 2008/8/22
#9

Re: Xoopstube 1.08 beta 1 Error when deleting video

Thanks Michael

Mamba

Moderator
Posted on: 6/27 15:11
Mamba
Mamba (Show more)
Moderator
Posts: 11155
Since: 2004/4/23
#10

Re: Xoopstube 1.08 beta 1 Error when deleting video

Oswaldo, the issue with the offline icon should be now fixed. Please test:

https://github.com/mambax7/xoopstube
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs