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

attempting to run standalone does not work (for me) #88

Open
omz13 opened this issue Apr 12, 2020 · 6 comments
Open

attempting to run standalone does not work (for me) #88

omz13 opened this issue Apr 12, 2020 · 6 comments

Comments

@omz13
Copy link

omz13 commented Apr 12, 2020

I'm trying to run micropub.rocks standalone in my test environment.

In `lib\config.php' I have set up my database and, importantly, set

public static $skipauth = true;

The welcome page looks fine and informs me:

Welcome!

You are already signed in.

Continue

But I am not seeing the home or dashboard tabs (as per micropub.rocks)... and if I try to access the Server Reports tab, I'm getting a lot of errors such as:

Notice: Undefined variable: endpoint in .../micropubrocks.test/views/reports/servers.php on line 15

I assume this is because there's no endpoint configured, but I can't configure one because there's no dashboard tab to add one ( "Add new client").

Any ideas?

@omz13
Copy link
Author

omz13 commented Jul 9, 2020

The answer seems to be that it only works with php 7.1; it is very unhappy with any other version.

@jamietanna
Copy link
Contributor

@omz13 are you seeing this issue still? I'm able to run this locally with PHP 7.4

@omz13
Copy link
Author

omz13 commented Mar 3, 2021

@jamietanna sorry to say, if I try PHP 7.4 (and I've tried 7.4.12 and 7.4.15 in my MAMP Pro environment) I still run into errors, although slightly different ones:

e.g. On the dashboard, the first error thrown is a Notice: Undefined variable: endpoint in micropubrocks.test/views/dashboard.php on line 23

@aaronpk
Copy link
Owner

aaronpk commented Mar 3, 2021

Make sure "short open tags" is enabled in your PHP config

@omz13
Copy link
Author

omz13 commented Mar 3, 2021

Thanks @aaronpk for the pointer... so, ahem, apparently, MAMP Pro defaults to short_open_tag to Off for each php version that it installs... I've tweaked my php.ini for 7.4.15 and all seems to be working

@aaronpk
Copy link
Owner

aaronpk commented Mar 3, 2021

great! I should probably just rewrite this to not use short open tags

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