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

Could not find /postinstall #2

Open
lowscojownes opened this issue Nov 22, 2019 · 16 comments
Open

Could not find /postinstall #2

lowscojownes opened this issue Nov 22, 2019 · 16 comments

Comments

@lowscojownes
Copy link

Hi,

When I install the league manager and I add the registry data, it says after I press save, that it can't find /postinstall.
I look on the /www folder and I cannot see that folder, I don't know if it has to be there or it has to be created by the install process.

Thanks

@delkano
Copy link
Owner

delkano commented Nov 22, 2019 via email

@delkano
Copy link
Owner

delkano commented Nov 25, 2019

Hi!
I just tried a fresh install and can not reproduce your bug. Could you tell me how you installed it and what PHP version you are using?

@lowscojownes
Copy link
Author

Sure, I installed it deploying the files to my server (on a subfolder).
When uploaded modified the privileges on the www folder to 777. Then went to the www folder in the navigator and the process started alone, but gets stopped on the first phase.
My PHP version is the 7.3 If I don't recall badly.

@lowscojownes
Copy link
Author

lowscojownes commented Nov 26, 2019

For more detail I will take the images here.
The second capture is after filling the form of the first coach and pressing "Save".
After this if I try to go to the www route again I get an error, If I delete de DB it starts over, but never advances after this point.
SBBLM 1
SBBLM 2

@delkano
Copy link
Owner

delkano commented Nov 27, 2019

OK, after seeing your screenshots, I believe it is a matter of redirections configuration. The code contains an '.htaccess' file under www/ which includes the necessary redirections for an Apache server (the most common), but if you have something different (Nginx, Lighttpd, ...) or you have disallowed per directory configs, you may need a different method.

If you know what I am talking about, you just need to redirect any non-exisiting file request to index.php.

If you don't, try to see what server you're using and if you can configure it. We'll take it from there.

@lowscojownes
Copy link
Author

Well, I am using the hosting on One.com. I believe it is Apache but I don't know exactly.
I see the htaccess:
SBBLM 3

But I don't know what I have to modify exactly.

@delkano
Copy link
Owner

delkano commented Nov 27, 2019

I'm not sure if this is going to work, but you can try to uncomment the RewriteBase line (remove the starting #) and set the path from / to /hellbowl3d/www.
If this still doesn't work, my only idea is to contact one.com on the link they give you here: https://help.one.com/hc/es/articles/115005586169--Qué-es-htaccess-

@lowscojownes
Copy link
Author

Now it just says not found.
Gonna talk with one to see what happens then.

@lowscojownes
Copy link
Author

I sent the request to One.com so they can help me but I have not much expectations.
Could you make me a favour?
Could you send me one fresh DB generated with a generic administrator first user?
Want to try if that fixes it. I would really appreciate it.

If the thing is that it gets stuck in the DB creation, that should fix it, I supose.

Thanks in advance,

@delkano
Copy link
Owner

delkano commented Nov 30, 2019

I can send you a DB but I don't think that will solve the issues, since the routing is necessary on the whole manager, not just the install (and you're seeing a default 404 page, not the SBBLM custom one, so I know it isn't working).
However, please just try one last thing. Rename the .htaccess file to something like backup.htaccess, create a fresh .htaccess, and have just one line in it:

FallbackResource /hellbowl3d/www/index.php

If it still doesn't work, I'll send you a fresh DB (just as a last test) and start working on an alternate routing system.

@lowscojownes
Copy link
Author

Hi Delkano,

Tried it, same output.
If you're so sure about that don't bother to send me the DB.

Backed up the htaccess, created a new one with that line and the same happens.

@lowscojownes
Copy link
Author

I've changed a little bit that line you gave me and the error is now different:
Captura

@lowscojownes
Copy link
Author

lowscojownes commented Nov 30, 2019

In any case is extremely rare.
The process seems to be stopping midpoint, and the url of the postinstall cannot be found.
I wonder if it needs to generate something and it does not do that.

This is bugging me hahaha

Edit: from one.com say they don't have a clue.

@delkano
Copy link
Owner

delkano commented Dec 2, 2019

Hi again. No, it is not that it is generating something and it can't. I'll try to explain:
Every URL from SBBLM is actually managed by the same file, index.php. This is true for /postinstall as well. index.php receives the request, looks at the path it asked for, and says "Oh, this is a postinstall route, I'll call the "postinstall" method to answer it. I'm simplifying a bit, but this is the idea.

The issue you're having is that, although the .htaccess has the right configuration, for some reason your Apache install (or more accurately, the One.com install) is ignoring what .htaccess is telling it (that is, to send any request to index.php) and instead is trying to find an actual /postinstall file (which obviously doesn't exist and shouldn't). Since it can't find it, it generates a 404 error, which should display a 404 page. This also should be managed by index.php but, since the server is ignoring these instructions, it just shows its own, basic one.

Coming to this point, and as a special situation, I can offer you one thing: I can store your SBBLM install on my own server and, if you want, you can redirect your domain to it.

@delkano
Copy link
Owner

delkano commented Dec 3, 2019

Alternatively, would you be willing to granting me temporary FTP or SSH access to this directory of your server?

@lowscojownes
Copy link
Author

Before giving you access to the server, I want to try out something before.
I had a raspi eating dust for some time, I might try to use it as an apache server and use the redirect from the web to the raspi.

That will take me some days but I'll try and tell you how it goes.
Didn't know postinstall was a method, I am a excoder, thought is was a physical file or something but that clarifies it for me.
Thanks

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

2 participants