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

PHP warning #58

Open
hutchy1990 opened this issue Dec 23, 2014 · 12 comments
Open

PHP warning #58

hutchy1990 opened this issue Dec 23, 2014 · 12 comments

Comments

@hutchy1990
Copy link

I get this warning when trying to install

PHP warning

file_get_contents(http://openbay.isohunt.to/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
/home/raider/protected/installer/controllers/DefaultController.php(51)

39 if (!isset($settings['sphinxOurConfig']))
40 {
41 $dbParameters = array('sphinxHost', 'sphinxPort');
42 foreach($dbParameters as $dbParameter)
43 {
44 if (!isset($settings[$dbParameter]) || !$settings[$dbParameter])
45 $errors[$dbParameter] = true;
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
57 'db' => array(
58 'connectionString' =>
59 'mysql:host=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['host'] : $settings['dbHost']) .
60 ';port=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['port'] : $settings['dbPort']) .
61 ';dbname=' . (isset($settings['dbOurConfig']) ? $defaultComponents['db']['name'] : $settings['dbName']),
62 'username' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['user'] : $settings['dbUser'],
63 'password' => isset($settings['dbOurConfig']) ? $defaultComponents['db']['password'] : $settings['dbPassword']
Stack Trace
#0

– /home/raider/protected/installer/controllers/DefaultController.php(51): file_get_contents("http://openbay.isohunt.to/config.json")
46 }
47 }
48
49 if (count($errors) === 0) {
50 // Receive default remote settings
51 $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
53
54 // Build params
55 $params = array(
56 'applicationName' => CHtml::encode($settings['name']),
#1

  • /home/raider/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): DefaultController->actionIndex()
    Browse not working, #2
  • /home/raider/protected/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array())
    Fixed error in render list #3
  • /home/raider/protected/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction)
    server requirements #4
  • /home/raider/protected/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())
    Array to string conversion #5
  • /home/raider/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run("")
    Please help me to deploy it with Xampp!!! #6
  • /home/raider/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("installer")
    fixed 'brining' to 'bringing' #7
  • /home/raider/protected/vendor/yiisoft/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()
    Fixed potential security issues #8
    – /home/raider/public_html/index.php(13): CApplication->run()
    08 $yii = DIR . '/../protected/vendor/yiisoft/yii/framework/' . (YII_DEBUG ? 'yii.php' : 'yiilite.php');
    09 require_once (DIR . '/../protected/vendor/autoload.php');
    10 require_once ($yii);
    11
    12 $config =(is_file('installer.php')) ? 'installer.php' : DIR . '/../protected/config/config.php';
    13 Yii::createWebApplication($config)->run();
@booth-f
Copy link

booth-f commented Dec 23, 2014

They must have moved the file or something, I just tried myself and got the same error, now I'm basically in a standstill until they fix it

@hutchy1990
Copy link
Author

same

@booth-f
Copy link

booth-f commented Dec 23, 2014

The file its failing to get is essential, it basically goes in protected/config/config.php without it the site can't operate. Does anyone have a config on hand (blank out database passwords and other stuff ofc) to use temporarily?

@booth-f
Copy link

booth-f commented Dec 23, 2014

Nevermind I have a temporary fix, we don't even need the configuration.

go to line 51 where it says

$defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
52 $defaultComponents = $defaultComponents['components'];
and comment them out

// $defaultComponents = json_decode(file_get_contents("http://openbay.isohunt.to/config.json"), true);
//$defaultComponents = $defaultComponents['components'];

then go through the installer as normal.

@booth-f
Copy link

booth-f commented Dec 23, 2014

I just opened a pull request to comment the line out for now, probably not worthy of a pull request but ether way.

@PeteBishwhip
Copy link

@tranquilitycal The fix you suggested hasn't worked for me. The variable $defaultComponents are used elsewhere and so quite rightly, an undefined variable error is thrown.

@booth-f
Copy link

booth-f commented Dec 23, 2014

How would mine work then? I didn't recieve a undefined variable. Are you using your own database and sphinx when going through the installer?

@PeteBishwhip
Copy link

I will run again in a few hours to confirm. I may have missed out Sphinx.

@booth-f
Copy link

booth-f commented Dec 23, 2014

I'm currently working on getting sphinx working at the current moment but that shouldn't stop you from being able to say your using your own even temporarily for now.

This was referenced Dec 24, 2014
@bluelime88
Copy link

Please help how to fix this. TY

openbay-error

@kubiakingg
Copy link

Hi there,
I am facing the error bellow:

file_get_contents(http://openbay.isohunt.to/config.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

How can we fix that? How can we help the Torrent Word?

Please, help me here or at kubiakingg@gmail.com

@ghost
Copy link

ghost commented Aug 1, 2015

I tried on https://archive.org/,and they have the file. but its take more time to get http://isohunt.to/openbay/config.json

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

5 participants