Page 1 of 1

Cannot change style/theme after 1.5.2 upgrade

Posted: Mon Feb 08, 2010 8:14 am
by wagwag
Hi,
I just upgraded my blog from Serendipity 1.4 to 1.5.2 and the only problem I see is that when I go to Manage Styles in the admin interface I get a plain while page (no css/images/formatting) with no listing of styles or any way to change the style; only the following text:
Theme/Style options

This theme/style has no specific options. To see how your template can specify options, read the Technical Documentation on http://www.s9y.org about "Configuration of Theme options".
Select the template you wish to use for your blog

Trying to open URL package_template.xml...
Fetched 233594 bytes from the URL above. Saving file as /var/www/templates_c/package_template.xml...
Data successfully fetched.
I looked at the source of this page and found it is not even a complete HTML page; it's just a chunk of HTML:

Code: Select all

<h3>Theme/Style options</h3><p>This theme/style has no specific options. To see how your template can specify options, read the Technical Documentation on www.s9y.org about "Configuration of Theme options".</p><h3>Select the template you wish to use for your blog</h3><br />
<div class="serendipityAdminMsgNotice"><img style="width: 22px; height: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="/templates/default/admin/img/admin_msg_note.png" alt="" />Trying to open URL <a href="http://netmirror.org/mirror/serendipity/package_template.xml">package_template.xml</a>...</div>
<div class="serendipityAdminMsgSuccess"><img style="height: 22px; width: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="/templates/default/admin/img/admin_msg_success.png" alt="" />Fetched 233594 bytes from the URL above. Saving file as /var/www/templates_c/package_template.xml...</div>
<div class="serendipityAdminMsgSuccess"><img style="height: 22px; width: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="/templates/default/admin/img/admin_msg_success.png" alt="" />Data successfully fetched.</div>
<br /><br />
The blog and the admin interface seem to be working fine otherwise. I've tried clearing browser cache and using a different browser, and deleting templates_c/* but none of that made any difference. I'm using the plain-vanilla style currently if that is relevant.

Any ideas?

Re: Cannot change style/theme after 1.5.2 upgrade

Posted: Mon Feb 08, 2010 10:48 am
by garvinhicking
Hi!

Usually this happens when PHP runs out of RAM, and PHP is configured to not display errors. You can try to edit your .htaccess and place "php_value display_errors On" into it to see errors. If it's really a RAM issue, you can try to edit .htaccess with "php_value memory_limit 32M" for example; if that doesn't work you might need to contact your provider to raise the memory limit.

XML parsing for plugins/templates goes heavy on the RAM. If you can'T raise the limit, you need to disable spartacus and upload plugins/templates manually.

Regards,
Garvin

Re: Cannot change style/theme after 1.5.2 upgrade

Posted: Mon Feb 08, 2010 4:40 pm
by wagwag
You were exactly right. PHP errors are not displayed and the memory limit had been set to 12MB, but just a little more was needed because it worked fine set to 13MB. I went a ahead and set it higher though to avoid this problem in the future.

Thanks, Garvin! :)