Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to know why this script doesnt work on my host. https://github.com/jeckman/YouTube-Downloader the cURL is on... i got this error:

Warning: call_user_func_array() expects parameter 2 to be array, string given in /home/akbarixy/public_html/o/bootstrap.php on line 80

Fatal error: Call to a member function get() on a non-object in /home/akbarixy/public_html/o/bootstrap.php on line 82

but on another host i didnt get any errors.it worked good.

What I have tried:

but on another host i didnt get any errors.it worked good.
Posted
Comments
Richard MacCutchan 14-Apr-18 12:01pm    
Look at the error messages they are telling you what is wrong. In case 1 you have not passed the correct parameters to the function call_user_func_array. In case 2 you are attempting to use an object reference that does not point to a valid object.
mhakbari97 14-Apr-18 12:24pm    
but why it works on another host? and doesnt work here?
Richard MacCutchan 14-Apr-18 12:42pm    
Because there are still bugs in the code. But you will have to look into it to find out why. Case 1: I have no idea, because we have no information. Case 2 is slightly easier: work backwards from the error line to see why the reference has not been set.

One of the most common problems that we see here is code that does not check status values properly, and just assumes that things work. Are you checking status and objects everywhere?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900