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

API version 2 #47

Open
TomasHurtz opened this issue May 3, 2017 · 11 comments
Open

API version 2 #47

TomasHurtz opened this issue May 3, 2017 · 11 comments

Comments

@TomasHurtz
Copy link

TomasHurtz commented May 3, 2017

How could we upgrade the API implemented to version 2 ?

@TomasHurtz
Copy link
Author

@TheModernFlash
Copy link

Does API 1 currently work for you?

@TomasHurtz
Copy link
Author

Yes - the default install currently works fine for me - but what will happen when API v1 is retired?

@TheModernFlash
Copy link

I was just wondering because API1 setup isn't working for me. You can see it at https://themodernflash.com/statuspage. P.S. Someone on here has created a statuspage.php file that is compatible with API2.

@TomasHurtz
Copy link
Author

TomasHurtz commented May 9, 2017

not seen any api v2 reference - please elaborate.

edit - ah yes, now I see it here: #44

RE your page - is it vanilla instal ? If so, must be something on your server.

@TheModernFlash
Copy link

What build are you using and what info did you have to change? I'm just gonna start all the way over, but I want to know what steps I need to take to make sure I do it correctly. Also, I'm glad you found it.

@TomasHurtz
Copy link
Author

I used public version here https://github.com/nerdbaggy/StatusPage/archive/v3.zip

I did not change anything - just add my API in config and it work for me.

@TheModernFlash
Copy link

Which folder do I use or do I put that entire folder in the webserver? If I paste the entire folder in to my webserver, where is the location of the config file I need to change?

@TomasHurtz
Copy link
Author

TomasHurtz commented May 10, 2017

I upload only the "build" folder to a hosting account on a server, then renamed the build folder to e.g. uptimestatus

Put uploaded folder in your public_html/ - example, in the root directory where your website index file is.

Then, modify config file to add your API key (get API key from UR settings page). Config file is in /build/statuspage/config.php

Save config file back to server then visit the statuspage index file via web browser.

Example, if you rename the "build" folder with uptimestatus, then point URL to yourdomain.com/uptimestatus/index.html

It should work.

@solaceten
Copy link

Anyone else still using this? It was good but now getting errors with phpfastcache

@solaceten
Copy link

solaceten commented Feb 15, 2023

OK - i found a fix for the PHP 8 issues:

In checks.php change the following:

$checks = $statusPage->getChecks ($_GET['action']));

to become:

if ($statusPage->getChecks ($_GET['action']) !== null){
    
    $checks = $statusPage->getChecks($_GET['action']);
    echo $statusPage->padIt(array('headers' => $tableHeaders, 'checks' => $checks));
} else {
    
    $checks = '';
    echo 'none';
}

Would be amazing to see this project updated... but I'm not a developer sadly.

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