Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YPTStorage broken #8880

Open
para2022 opened this issue Mar 9, 2024 · 8 comments
Open

YPTStorage broken #8880

para2022 opened this issue Mar 9, 2024 · 8 comments
Labels

Comments

@para2022
Copy link

para2022 commented Mar 9, 2024

Hi my storage is broken.

  1. It does not move vids into storage anymore.
  2. I cannot move videos into storage anymore in my videos panel.
  3. I cannot use the script under tools directory in the plugin anymore as it returns the below error.

The error below is probably why it is broken.

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ourtube.co.uk/public_html/ourtube/plugin/YPTStorage/YPTStorage.php(18) : eval()'d code(1) : eval()'d code on line 654
{"error":true,"msg":"moveFromLocalToSiteVideo: Error on URL post.json.php?secret=&video_url=https%3A%2F%2Fourtube.co.uk%2Fvideos%2Fvideo_240216070245_vb840%2Fvideo_240216070245_vb840_720.mp4&filesize=","returned":false,"json":false}

@para2022 para2022 added the bug label Mar 9, 2024
@DanielnetoDotCom
Copy link
Member

Please share more about this log

@para2022
Copy link
Author

para2022 commented Mar 9, 2024

*** SCRIPT_NAME: /view/modeYoutube.php
function: print Line: {411} File: {/home/www.mysite.com/public_html/myMySQLUser/view/modeYoutube.php}
function: getPage Line: {157} File: {/home/www.mysite.com/public_html/myMySQLUser/objects/Page.php}
function: getContent Line: {148} File: {/home/www.mysite.com/public_html/myMySQLUser/objects/Page.php}
function: getNavBar Line: {137} File: {/home/www.mysite.com/public_html/myMySQLUser/objects/Page.php}
function: include Line: {99} File: {/home/www.mysite.com/public_html/myMySQLUser/objects/Page.php}
function: getHTMLMenuRight Line: {136} File: {/home/www.mysite.com/public_html/myMySQLUser/view/include/navbar.php}
function: getHTMLMenuRight Line: {348} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/AVideoPlugin.php}
function: include Line: {64} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/Live.php}
function: getStatsNotifications Line: {387} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/view/menuRight.php}
function: getStats Line: {7816} File: {/home/www.mysite.com/public_html/myMySQLUser/objects/functions.php}
function: _getStats Line: {1946} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/Live.php}
function: getStatsObject Line: {2250} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/Live.php}
function: get_data Line: {1587} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/Live.php}
function: _error_log_debug Line: {1641} File: {/home/www.mysite.com/public_html/myMySQLUser/plugin/Live/Live.php}
Live::getStatsObject get_data(https://www.mysite.com:444/stat, 4)


[09-Mar-2024 19:38:08 Europe/London] AVideoLog::DEBUG:
[09-Mar-2024 19:38:07 Europe/London] AVideoLog::DEBUG: Time: 0.277s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:07 Europe/London] AVideoLog::DEBUG: Time: 0.313s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:07 Europe/London] AVideoLog::DEBUG: Time: 0.332s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: Time: 0.285s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: getCurrentPage current>1000 ERROR NOT LOGGED die [2029] https://www.mysite.com/view/?page=2029&current=2029&lang=es&rowCount=12&tags_id=3148 {"USER":"myMySQLUser","HOME":"/home/www.mysite.com","SCRIPT_NAME":"/view/index.php","REQUEST_URI":"/page/2029/?current=2029&lang=es&rowCount=12&tags_id=3148","QUERY_STRING":"page=2029&current=2029&lang=es&rowCount=12&tags_id=3148","REQUEST_METHOD":"GET","SERVER_PROTOCOL":"HTTP/1.1","GATEWAY_INTERFACE":"CGI/1.1","REDIRECT_QUERY_STRING":"page=2029&current=2029&lang=es&rowCount=12&tags_id=3148","REDIRECT_URL":"/page/2029/","REMOTE_PORT":"44588","SCRIPT_FILENAME":"/home/www.mysite.com/public_html/myMySQLUser/view/index.php","SERVER_ADMIN":"[no address given]","CONTEXT_DOCUMENT_ROOT":"/home/www.mysite.com/public_html/myMySQLUser","CONTEXT_PREFIX":"","REQUEST_SCHEME":"https","DOCUMENT_ROOT":"/home/www.mysite.com/public_html/myMySQLUser","REMOTE_ADDR":"47.76.35.19","SERVER_PORT":"443","SERVER_ADDR":"152.53.2.56","SERVER_NAME":"www.mysite.com","SERVER_SOFTWARE":"Apache","SERVER_SIGNATURE":"","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin","HTTP_CONNECTION":"keep-alive","HTTP_HOST":"www.mysite.com","HTTP_ACCEPT_ENCODING":"gzip, x-gzip, deflate","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.2152.23 Safari/537.36","proxy-nokeepalive":"1","SSL_TLS_SNI":"www.mysite.com","HTTPS":"on","proto":"https","SCRIPT_URI":"https://www.mysite.com/page/2029/","SCRIPT_URL":"/page/2029/","REDIRECT_STATUS":"200","REDIRECT_SSL_TLS_SNI":"www.mysite.com","REDIRECT_HTTPS":"on","REDIRECT_proto":"https","REDIRECT_SCRIPT_URI":"https://www.mysite.com/page/2029/","REDIRECT_SCRIPT_URL":"/page/2029/","FCGI_ROLE":"RESPONDER","PHP_SELF":"/view/index.php","REQUEST_TIME_FLOAT":1710013086.726712,"REQUEST_TIME":1710013086} SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: getCurrentPage current>1000 ERROR [2029] [{"file":"/home/www.mysite.com/public_html/myMySQLUser/objects/functions.php","line":5511,"function":"getCurrentPage"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/actionButton.php","line":4,"function":"doNOTOrganizeHTMLIfIsPagination"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/PlayLists.php","line":136,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/actionButton.php"],"function":"include"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/AVideoPlugin.php","line":669,"function":"getGalleryActionButton","class":"PlayLists","type":"->"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":326,"function":"getGalleryActionButton","class":"AVideoPlugin","type":"::"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":201,"function":"createGallerySectionVideo"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":88,"function":"createGallerySection"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/mainArea.php","line":134,"function":"createGallery"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/modeGallery.php","line":21,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/mainArea.php"],"function":"include"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/view/index_firstPage.php","line":58,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/modeGallery.php"],"function":"require"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/view/index.php","line":20,"args":["/home/www.mysite.com/public_html/myMySQLUser/view/index_firstPage.php"],"function":"include"}] SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: Time: 0.279s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: Time: 0.275s | Limit: 0.2s | Location: /home/www.mysite.com/public_html/myMySQLUser/view/index.php Line 128 [navbar.php] IP=47.76.35.19 SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: getCurrentPage current>1000 ERROR NOT LOGGED die [2029] https://www.mysite.com/view/?page=2029&current=2029&lang=es&rowCount=12&tags_id=3148 {"USER":"myMySQLUser","HOME":"/home/www.mysite.com","SCRIPT_NAME":"/view/index.php","REQUEST_URI":"/page/2029/?current=2029&lang=es&rowCount=12&tags_id=3148","QUERY_STRING":"page=2029&current=2029&lang=es&rowCount=12&tags_id=3148","REQUEST_METHOD":"HEAD","SERVER_PROTOCOL":"HTTP/1.1","GATEWAY_INTERFACE":"CGI/1.1","REDIRECT_QUERY_STRING":"page=2029&current=2029&lang=es&rowCount=12&tags_id=3148","REDIRECT_URL":"/page/2029/","REMOTE_PORT":"44588","SCRIPT_FILENAME":"/home/www.mysite.com/public_html/myMySQLUser/view/index.php","SERVER_ADMIN":"[no address given]","CONTEXT_DOCUMENT_ROOT":"/home/www.mysite.com/public_html/myMySQLUser","CONTEXT_PREFIX":"","REQUEST_SCHEME":"https","DOCUMENT_ROOT":"/home/www.mysite.com/public_html/myMySQLUser","REMOTE_ADDR":"47.76.35.19","SERVER_PORT":"443","SERVER_ADDR":"152.53.2.56","SERVER_NAME":"www.mysite.com","SERVER_SOFTWARE":"Apache","SERVER_SIGNATURE":"","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin","HTTP_CONNECTION":"keep-alive","HTTP_HOST":"www.mysite.com","HTTP_ACCEPT_ENCODING":"gzip, x-gzip, deflate","HTTP_USER_AGENT":"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.2152.23 Safari/537.36","proxy-nokeepalive":"1","SSL_TLS_SNI":"www.mysite.com","HTTPS":"on","proto":"https","SCRIPT_URI":"https://www.mysite.com/page/2029/","SCRIPT_URL":"/page/2029/","REDIRECT_STATUS":"200","REDIRECT_SSL_TLS_SNI":"www.mysite.com","REDIRECT_HTTPS":"on","REDIRECT_proto":"https","REDIRECT_SCRIPT_URI":"https://www.mysite.com/page/2029/","REDIRECT_SCRIPT_URL":"/page/2029/","FCGI_ROLE":"RESPONDER","PHP_SELF":"/view/index.php","REQUEST_TIME_FLOAT":1710013086.333597,"REQUEST_TIME":1710013086} SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:06 Europe/London] AVideoLog::DEBUG: getCurrentPage current>1000 ERROR [2029] [{"file":"/home/www.mysite.com/public_html/myMySQLUser/objects/functions.php","line":5511,"function":"getCurrentPage"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/actionButton.php","line":4,"function":"doNOTOrganizeHTMLIfIsPagination"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/PlayLists.php","line":136,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/PlayLists/actionButton.php"],"function":"include"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/AVideoPlugin.php","line":669,"function":"getGalleryActionButton","class":"PlayLists","type":"->"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":326,"function":"getGalleryActionButton","class":"AVideoPlugin","type":"::"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":201,"function":"createGallerySectionVideo"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/functions.php","line":88,"function":"createGallerySection"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/mainArea.php","line":134,"function":"createGallery"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/modeGallery.php","line":21,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/mainArea.php"],"function":"include"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/view/index_firstPage.php","line":58,"args":["/home/www.mysite.com/public_html/myMySQLUser/plugin/Gallery/view/modeGallery.php"],"function":"require"},{"file":"/home/www.mysite.com/public_html/myMySQLUser/view/index.php","line":20,"args":["/home/www.mysite.com/public_html/myMySQLUser/view/index_firstPage.php"],"function":"include"}] SCRIPT_NAME: /view/index.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage::movingIsDone log file not found SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage::movingIsDone start (57610) SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): moveFromLocalToSiteVideo: Error on URL post.json.php?secret=&video_url=https%3A%2F%2Fwww.mysite.com%2Fvideos%2Fvideo_240216070245_vb840%2Fvideo_240216070245_vb840_720.mp4&filesize= SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): moveFromLocalToSiteVideo: Download done SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: url_get_contents Cannot download post.json.php?secret=&video_url=https%3A%2F%2Fwww.mysite.com%2Fvideos%2Fvideo_240216070245_vb840%2Fvideo_240216070245_vb840_720.mp4&filesize= SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): moveFromLocalToSiteVideo: Sending request to the Site post.json.php?secret=&video_url=https%3A%2F%2Fwww.mysite.com%2Fvideos%2Fvideo_240216070245_vb840%2Fvideo_240216070245_vb840_720.mp4&filesize= SCRIPT_NAME: moveAllVideosToStorage.php
************ ******** ************** *** *********** ************ ******* **** ** ********* ** ********* ** **** ****** ** ********** ** **************************************************************************** * ******** ******* * ******** **** ** **** *** - pass
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): 3 - Start Transfer of mp4_720 file SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): Found 16 files to transfer SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: log(57610): Start (Local to Site) Transfer of (57610) High Protein Nandos Peri Peri Chicken! Only 452 Calories | Quick and easy SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: onUploadIsDone(57610) SCRIPT_NAME: moveAllVideosToStorage.php
[09-Mar-2024 19:38:04 Europe/London] AVideoLog::DEBUG: YPTStorage: onUploadIsDone invalid type embed SCRIPT_NAME: moveAllVideosToStorage.php

@para2022
Copy link
Author

para2022 commented Mar 9, 2024

I think we had this problem in the past dan and i forgot how it was resolved now.

@DanielnetoDotCom
Copy link
Member

the error you pase is different than the one you posted first

Deprecated: urlencode(): Passing null to parameter https://github.com/WWBN/AVideo/pull/1 ($string) of type string is deprecated in /home/ourtube.co.uk/public_html/ourtube/plugin/YPTStorage/YPTStorage.php(18) : eval()'d code(1) : eval()'d code on line 654

Also I cannot see any issue on that log

you may want to check also your storage logs for clues

@para2022
Copy link
Author

para2022 commented Mar 9, 2024

The error i posted first is when i run the shell script to move videos.

The only reference to YTPStorage on the avideo.log is what i posted second which was a warning. I dont errors in my AVideo log when i run the shell script, it just fails.

Storage log i only see this error:

[09-Mar-2024 20:00:44 Europe/London] post.json.php: response {"error":true,"msg":"Invalid secret","aVideoStorageURL":"https://storage1.ourtube.co.uk/","filename":""}

@DanielnetoDotCom
Copy link
Member

Ok, I cannot check it deeper today, I need to check what happen on Monday

@para2022
Copy link
Author

para2022 commented Mar 9, 2024

Ok thanks. Is it possible to reinstall a fresh YPTStorage installation without breaking everything?

@para2022
Copy link
Author

para2022 commented Mar 9, 2024

Ive fixed it now i can manually move the videos to storage in videos panel so i assume uploaded videos are storing in storage again. Somehow i had the wrong secret. However the php move shell script in tools is still broken with the original error i posted so that still needs fixing. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants