Page 1 of 1

Trouble with themes

Posted: Thu Jan 21, 2021 5:40 am
by dciobanu88
Hi Guys,

First time trying serendipity.
I'm having trouble changing the default theme, I believe it's "2k11".
The docs are talking about "Manage styles" in the left menu bar.
I don't see anything like it. There is a link for "Themes" but the result of that is an HTTP 500 error. Same thing for trying "update plugins".

Thank you for your time,

Dumitru

Re: Trouble with themes

Posted: Thu Jan 21, 2021 9:35 pm
by onli
"Themes" is the right menu. The 500 error should not occur, something is going wrong. The error will be logged in your apache 2 error.log. Can you access that file and see which error is preventign the menu from working?

Re: Trouble with themes

Posted: Fri Jan 22, 2021 4:03 am
by dciobanu88
Hmm, some kind of php error

<<<
[Thu Jan 21 22:01:51.728893 2021] [php7:error] [pid 1033] [client 192.168.0.8:58066] PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /var/www/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php:684\nStack trace:\n#0 /var/www/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php(1281): serendipity_event_spartacus->fetchOnline()\n#1 /var/www/serendipity/include/plugin_api.inc.php(1184): serendipity_event_spartacus->event_hook()\n#2 /var/www/serendipity/include/admin/templates.inc.php(175): serendipity_plugin_api::hook_event()\n#3 /var/www/serendipity/serendipity_admin.php(118): include('/var/www/serend...')\n#4 {main}\n thrown in /var/www/serendipity/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 684, referer: http://192.168.0.219/serendipity_admin.php
>>>

I'm totally lost.

BR,
Dumitru

Re: Trouble with themes

Posted: Fri Jan 22, 2021 4:06 am
by dciobanu88
Sorry, I should've probably add some additional environment.
This is a VM running ubuntu 20.04.1
Powered by Serendipity 2.3.5 and PHP 7.4.3

It is a fresh install, all green fields when using the Serendipity installer.

BR,
Dumitru

Re: Trouble with themes

Posted: Fri Jan 22, 2021 12:30 pm
by erAck
> PHP Fatal error: Uncaught Error: Call to undefined function xml_parser_create()

Your PHP installation is incomplete and is lacking some php*-xml package.
Note it must be one matching your installed php package.

Re: Trouble with themes

Posted: Fri Jan 22, 2021 5:56 pm
by dciobanu88
Thank you for taking the time to look into this.

I'm surprised that it hasn't been picked up by the installation, like I said, all green across the board.
There are 2 packages available, php7.4-xml and php7.4-xmlrpc.
I get that I need the first but what about the second one? I'm a little nervous about the "rpc" part.

Thanks much,
Dumitru

Re: Trouble with themes

Posted: Fri Jan 22, 2021 6:04 pm
by dciobanu88
Update:
Installed the php7.4-xml only and things seem to respond normally.

I appreciate your help.

Thanks much,
Dumitru

Re: Trouble with themes

Posted: Fri Jan 22, 2021 6:18 pm
by onli
The project got an awesome PR that will add the check in the next s9y version: https://github.com/s9y/Serendipity/pull/742

I'm happy your site is working properly now, erAck was spot-on with identifying the issue.

Re: Trouble with themes

Posted: Thu Mar 04, 2021 3:31 pm
by costein
Hi all

I'd like to add something that might help with the issue of "Themes" and "Plugins" getting an HTTP Error 500 message. I just had the same issue.

Upon asking, I got the following answer from my SysAdmin: "I see there is a restriction on the PHP OpenBaseDir".
He advised me to set it to "none", which I did.
Had to wait 10 minutes and now everything works like it should.

In case it didn't work, he also advised me to reinstall S9Y.

Hope this also might help out.

I am greatful for this forum, since I could localize the error and get help.
Thanks all.

Cheers, Costein

Re: Trouble with themes

Posted: Thu Mar 04, 2021 4:07 pm
by onli
Hi costein, thanks for your post. 500 is a pretty generic error code. The openBaseDir-restriction was likely a different error than the one reported in this thread so far. Nonetheless, it's great that you could fix that one :)