-
Notifications
You must be signed in to change notification settings - Fork 2
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
Problems installing Timeline #18
Comments
Great and yes, we should change the password;)
|
-1. My idea was to have a 'public' sandbox which could auto-restore the
|
-1. Ah, I see also
|
Hmm looking at my error_log I now notice |
Oh, I see it now it was wrong, thanks!
I'm thinking of having a |
anything I have also had the idea of a setup.php, but so much other that i wanted to implement first. I also want to make a docker image, so we can have timeline on https://www.pikapods.com and similar services. |
Personally I'm not a big fan of docker images, I think they make the process a bit more complex and it's not so friendly with shared Hosting. I'm not against it, although I think that for PHP is not that necessary. That said, a Single-click install is a great idea. I don't know about pikapods, but it seems to be something similar. For example I used the following on Ionos Shared Hosting to install a Wordpress blog: |
With the default
Also
https://twtxt-sandbox.eapl.me/timeline/ <- Looking here Any clues? |
anything in |
I can't find an |
I'm not sure if this is of any help or even if it's the correct way, but I got this one fixed with this modification: diff --git a/views/home.php b/views/home.php
index e9cda6a..126992e 100644
--- a/views/home.php
+++ b/views/home.php
@@ -24,9 +24,11 @@ $title = "Timeline for ".$title;
// Redirect guests to Profile view, if url not set til home twtxt.txt
-if (!isset($_SESSION['password']) && ($_GET['url'] != $config['public_txt_url']) ) {
- header('Location: ./profile');
- exit();
+if (!isset($_SESSION['password']) && (isset($_GET['url']))) {
+ if ($_GET['url'] != $config['public_txt_url']) {
+ header('Location: ./profile');
+ exit();
+ }
}
include_once 'partials/header.php';
@@ -43,4 +45,4 @@ if (isset($_SESSION['password'])) {
include_once 'partials/timeline.php';
-include_once 'partials/footer.php';
\ No newline at end of file
+include_once 'partials/footer.php'; |
@aelaraji looks legit. Care to make a PR with it? |
@sorenpeter sure! |
I've pulled the latest main here: https://twtxt-sandbox.eapl.me/timeline/ Thanks @aelaraji |
Oops, it seems the redirects are now broken: https://twtxt-sandbox.eapl.me/timeline/login It seems |
I don't get how to log in with two passwords?! |
Just join them, first the word and then the numbers. |
I created a Timeline sandbox (WIP) here, to run some tests:
https://twtxt-sandbox.eapl.me/timeline/
https://twtxt-sandbox.eapl.me/twtxt.txt
Password:
sandbox
and then12345
(Could be changed and shared somewhere else if it's risky)
I'm cloning the repo (to get the latest main) with the command
And then following the steps as found in https://github.com/sorenpeter/timeline?tab=readme-ov-file#-installation-and-setup
I added this line to
.htaccess
although I have to check if that's still needed (or perhaps it is causing more errors)The debug mode is enabled to watch warning and errors.
1.
private/cache
folder is missingAs empty folders are not saved on Git, a dummy file will be required for the folder to be created when pulling.
Had to create that folder manually to remove an error on first refresh.
2. Undefined 'url' key stops redirecting on main URL
URL: https://twtxt-sandbox.eapl.me/timeline/
To join the site, I had to use another URL such as https://twtxt-sandbox.eapl.me/timeline/profile
Redirects should be done before the HTML content is output. The warning is stopping the redirect to work.
3. Log in gives a header error on redirect
Redirects should be done before the HTML content is output, so I think some template code is running before the redirect.
The text was updated successfully, but these errors were encountered: