micropub.rocks icon indicating copy to clipboard operation
micropub.rocks copied to clipboard

attempting to run standalone does not work (for me)

Open omz13 opened this issue 5 years ago • 6 comments

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 avatar Apr 12 '20 04:04 omz13

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

omz13 avatar Jul 09 '20 18:07 omz13

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

jamietanna avatar Feb 25 '21 21:02 jamietanna

@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

omz13 avatar Mar 03 '21 13:03 omz13

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

aaronpk avatar Mar 03 '21 14:03 aaronpk

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

omz13 avatar Mar 03 '21 16:03 omz13

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

aaronpk avatar Mar 03 '21 16:03 aaronpk