Giter VIP home page Giter VIP logo

Comments (7)

foxnoodles avatar foxnoodles commented on June 4, 2024

Hello?

from microblog.

oelna avatar oelna commented on June 4, 2024

I'm sorry, I can't really look into this right now. You could try removing (or commenting out) all of the htaccess, to see if it runs, and add the lines back in one by one, which is what I would do. I don't have a MAMP setup right now, but I'll leave this issue open. In case you find out what caused the issue, I'll gladly update the htaccess to reflect your changes. Sorry I can't be of more help right now. I'll look into it when I can.

from microblog.

foxnoodles avatar foxnoodles commented on June 4, 2024

Found it. templates/timeline.inc.php line 18 to 21 causes redirect loop. For some reason there is a check to redirect to home page if there are no posts. That obviously causes a loop.

if(empty($posts)) {
		header('Location: '.$config['url']);
		die();
	}

from microblog.

oelna avatar oelna commented on June 4, 2024

Ah, thanks for the info though. This looks like a much more reasonable change to take on. I guess the initial setup process has not been revisited for a while now. I'll keep it in mind!

from microblog.

foxnoodles avatar foxnoodles commented on June 4, 2024

No probs!
Also, I'm having problems with login/logout on Mamp. For som reason it does not want to set/unset the cookie time. The it out of the sudden logges in but does not want to logout. Weird. I've checked the cookie value and it somehow gets stuck. No idea why. Checked PHP setup and there's nothing out of the ordinary.

from microblog.

foxnoodles avatar foxnoodles commented on June 4, 2024

Ok I've figured that one out as well. FYI
Cookie does not get set because of this check (found in 3 files)
$domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;

localhost should be edited to match your setup. in my case it was localhost:8888

from microblog.

ivan-avalos avatar ivan-avalos commented on June 4, 2024

Ok I've figured that one out as well. FYI Cookie does not get set because of this check (found in 3 files) $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;

localhost should be edited to match your setup. in my case it was localhost:8888

It should be changed to:

$domain = ($_SERVER['SERVER_NAME'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false;

from microblog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.