micropub.rocks
micropub.rocks copied to clipboard
attempting to run standalone does not work (for me)
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?
The answer seems to be that it only works with php 7.1; it is very unhappy with any other version.
@omz13 are you seeing this issue still? I'm able to run this locally with PHP 7.4
@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
Make sure "short open tags" is enabled in your PHP config
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
great! I should probably just rewrite this to not use short open tags