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

Fatal error: Uncaught Error: Undefined constant "CURLOPT_RETURNTRANSFER" in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\config.php:29 Stack trace: #0 C:\SGZ_Pro\Hobbys\coding-projects\gnutube\index.php(4): require() #1 {main} thrown in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\config.php on line 29 #1

Open
trueauracoral opened this issue Jul 16, 2022 · 3 comments

Comments

@trueauracoral
Copy link

I am trying to run this on my computer with 127.0.0.1:8000 with php installed and I am getting errors about line 29 in the config file. I don't know anything about php.

@hnhx
Copy link
Owner

hnhx commented Jul 16, 2022

  1. Stop using that meme os
  2. You need to enable the curl extension

@trueauracoral
Copy link
Author

Ok so I fixed this error by making a php.ini file and adding this text:

extension=C:\SGZ_Pro\z-Apps_Drivers\php-8.1.8-Win32-vs16-x64\ext\php_curl.dll

Now I get new errors:

Warning: Undefined array key "q" in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\index.php on line 8

Deprecated: urlencode(): Passing null to parameter #1 ($string) of type string is deprecated in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 7

Warning: Undefined array key 1 in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 12

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 12

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: Trying to access array offset on value of type null in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 14

Warning: foreach() argument must be of type array|object, null given in C:\SGZ_Pro\Hobbys\coding-projects\gnutube\results\search_results.php on line 23

No popular video feed here, don't be a consoomer.

@AVeryNormalGuy
Copy link

windows users seething

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

No branches or pull requests

3 participants