isohuntto / openbay

Other
3.53k stars 903 forks source link

PHP warning #58

Open hutchy1990 opened 9 years ago

hutchy1990 commented 9 years ago

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

booth-f commented 9 years ago

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 commented 9 years ago

same

booth-f commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

PeteBishwhip commented 9 years ago

@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 commented 9 years ago

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 commented 9 years ago

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

booth-f commented 9 years ago

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.

bluelime88 commented 9 years ago

Please help how to fix this. TY

openbay-error

kubiakingg commented 9 years ago

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 commented 9 years ago

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