1
noo-b
Problem with mytube after php upgrade
  • 2014/6/9 1:51

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


Recently my host upgraded to php 5.4.29 from php 5.3xx

i noticed when opening the mytube module..i received blank page..

turning on the debug reveals no error

all other modules seems ok

Im using
XOOPS 2.57
mytube 1.05
php 5.429
mysql 5.5.36-cll

mytube module works without problem before the upgrade

i have tried XOOPSTUBE module but the custom video is not working


2
noo-b
Re: Problem with mytube after php upgrade
  • 2014/6/10 2:26

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


this is solved...Credits and a big thank you to skenow

if anyone here having the same problem..here is the solution

Quote:

skenow wrote:
If you were to look at your server PHP logs, you might be able to pinpoint the problems. But, here's my guess - there are very few things in PHP 5.4 that will cause fatal errors that didn't cause them on 5.3. Using a superglobal ($_GET, $_POST, $_FILE) as a function parameter is one of them.

http://us.php.net/manual/en/migration54.incompatible.php

Looking for that, I find this is happening in include/functions.php in 1 function - xtube_uploading.

function xtube_uploading$_FILES$uploaddir 'uploads'$allowed_mimetypes ''$redirecturl 'index.php'$num 0$redirect 0$usertype ) {
    global 
$_FILES$xoopsConfig$xoopsModuleConfig$xoopsModule;


You should be able to just change it to
function xtube_uploading$files$uploaddir 'uploads'$allowed_mimetypes ''$redirecturl 'index.php'$num 0$redirect 0$usertype ) {
    global 
$files$xoopsConfig$xoopsModuleConfig$xoopsModule;


and you'll be fine.

3
Mamba
Re: Problem with mytube after php upgrade
  • 2014/6/10 10:29

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I recommend to use XoopsTube, and if you find any bugs there, please let us know. MyTube is not maintained anymore on XOOPS.

The issues that you've mentioned above, have been already fixed in XoopsTube before. We test all modules that are maintained by XOOPS Development team on PHP 5.5.x.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

133 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 133


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits