(1) 2 »
Shiroku Shiroku
  • Just popping in
  • Just popping in
  • Joined: 2006/9/24 8:29
  • Group: Registered Users
  • Posts: 33
  • Posted on: 2012/12/22 14:33
blank custom blocks + rss not working #1
Hi all!
I just upgraded a local version of my xoops site (from v.2.4.5 to 2.5.5).

I faced 2 main issues:

1. the content of all custom blocks is not displayed (only the title of the block is shown). I created new HTML and PHP blocks, I updated the system module, I deleted the cache (both browser and xoops) and I checked the access rights, but the problem still remain.

2. RSS feed generation doesn't work. The [xoops_site]/backend.php page returns the following message (my English translation):
Error during xml readingno element found
Address
http://localhost/.../backend.php
Line number 1column 1:


Any suggestion?
Thank you!
Mamba Mamba
  • Moderator
  • Moderator
  • Joined: 2004/4/23 14:58
  • From Ohio, USA
  • Group: Webmaster Registered Users Designer Group Super Moderator
  • Posts: 10293
  • Posted on: 2012/12/23 7:14
Re: blank custom blocks + rss not working #2
Try to run "file check" to see if you have all the correct files.

I am not sure if I've heard of a problem with custom blocks.
Please support XOOPS & DONATE
Use 2.5.8 | Debug | Requests | Bugs
Shiroku Shiroku
  • Just popping in
  • Just popping in
  • Joined: 2006/9/24 8:29
  • Group: Registered Users
  • Posts: 33
  • Posted on: 2012/12/25 6:49
Re: blank custom blocks + rss not working #3
Thank you for your feedback: some files were missing in the "[...]/modules/system/templates/" and "[...]/modules/system/templates/blocks/" directories.

RSS are now generated in a correct way.

About "blank blocks", the content is displayed in all pages but there is an exception: the content is still not visible in the pages related to the News module (only the title of the block is displayed).
As usual, I updated the modules, I deleted the cache (both browser and xoops) and I checked the access rights, but the problem still remain.

Any suggestion about this "sub"-issue?
Thank you.

PS: Merry Christmas :)
maxxy maxxy
  • Quite a regular
  • Quite a regular
  • Joined: 2007/6/11 2:17
  • Group: Registered Users
  • Posts: 285
  • Posted on: 2012/12/25 7:55
Re: blank custom blocks + rss not working #4
can you post the content/code of your custom block here ?
Shiroku Shiroku
  • Just popping in
  • Just popping in
  • Joined: 2006/9/24 8:29
  • Group: Registered Users
  • Posts: 33
  • Posted on: 2012/12/25 10:14
Re: blank custom blocks + rss not working #5
There are several custom blocks, in the following you will find just the content of one of them (custom HTML block):

<div class="xo-blockcontent"><div id="mainmenu">  <!--<class='menuMain' href='{X_SITEURL}modules/forum/'>Forum</a>--> <class='menuMain' href='{X_SITEURL}modules/news/submit.php'>Scrivi una guida</a> <class='menuMain' href='{X_SITEURL}modules/xoopspoll/'>Sondaggi</a> <class='menuMain' href='{X_SITEURL}modules/news/article.php?storyid=7'>Scambio banner</a> <class='menuMain' href='{X_SITEURL}modules/news/article.php?storyid=122'>Firefox Search Bar</a>  </div></div>


My feeling is that the problem is not related to the content of the block for the following reasons:
- ALL custom blocks are not working in News module
- the blocks are correctly displayed when different pages/modules are loaded
- I tried to create a new custom html block with very simple content (just a word) and it doesn't work
Mamba Mamba
  • Moderator
  • Moderator
  • Joined: 2004/4/23 14:58
  • From Ohio, USA
  • Group: Webmaster Registered Users Designer Group Super Moderator
  • Posts: 10293
  • Posted on: 2012/12/25 18:19
Re: blank custom blocks + rss not working #6
Quote:
About "blank blocks", the content is displayed in all pages but there is an exception: the content is still not visible in the pages related to the News module

I cannot reproduce it.
What version of News are you using?
Did you update both the System and News modules?
Please support XOOPS & DONATE
Use 2.5.8 | Debug | Requests | Bugs
Shiroku Shiroku
  • Just popping in
  • Just popping in
  • Joined: 2006/9/24 8:29
  • Group: Registered Users
  • Posts: 33
  • Posted on: 2012/12/26 11:40
Re: blank custom blocks + rss not working #7
fixed: it was required to also update the themes files
donny donny
  • Just popping in
  • Just popping in
  • Joined: 2006/11/5 17:46
  • Group: Registered Users
  • Posts: 21
  • Posted on: 2013/1/8 13:02
Re: blank custom blocks + rss not working #8
I seem to be having the same problem :(

Upgraded from 2.4.5 to 2.5.5, things seem to work nice, except for a couple of blocks. Most of them are custom ones. If I open them for editing the content is nicely shown. Tried to duplicate them and tried to make a new one without success.

The weird thing is that I have the same problem with the "main" block, as well as "xt_themas" for theme selection.

Could you please elaborate more about "updating the theme files"?

I checked with various themes I have installed, and had the same problem. Also tried deleteing caches and they were regenerated.

Also I tried updating most of the modules, tried updating the system module again, but the problems persist.

Tried to turn on debugging mode, but most of the stuff was complaints about deprecation from some modules, not really related to this.

As far as I can see, the site is operating normally otherwise.
Shiroku Shiroku
  • Just popping in
  • Just popping in
  • Joined: 2006/9/24 8:29
  • Group: Registered Users
  • Posts: 33
  • Posted on: 2013/1/12 7:10
Re: blank custom blocks + rss not working #9
Please follow the steps below.

1- Compare the upgraded xoops site with the backup copy and check if the upgraded xoops site contains all templates files located in the following directories:
/modules/sytem/templates/
/modules/sytem/templates/blocks/

2- In "Admin Panel/Preferences/General settings" mark as "yes" the option "Allow changes to themes and templates"

3- Update system module (and other modules e.g. News)

4- Clear the application cache (smarty_cache, xoops_cache, etc.)

5- Clear the browser cache

6- Navigate the site and check the content of the blocks

After that, you can mark as "no" the option mentioned in step #2
donny donny
  • Just popping in
  • Just popping in
  • Joined: 2006/11/5 17:46
  • Group: Registered Users
  • Posts: 21
  • Posted on: 2013/1/15 6:07
Re: blank custom blocks + rss not working #10
Thank you very much for your reply - there really were some templates missing in the /modules/system/templates folder. I am not sure how this happened during the upgrade procedure - I did a regular 2.4.5 to 2.5.5 upgrade. Weird.

Anyway - uploaded what was needed, set the check templates option, updated the modules, and returned the check templates to "no".

Thanks again, you saved me a lot of time - I would probably get to the culprits eventually, but it would take some detailed investigation and following of flows.
How to effectively post a question in the Xoops forums? - Read here...
Design by: XOOPS UI/UX Team