1
allnewtome
Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/6 20:22

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


On my home page I have several blocks. The ones in the CENTRE are in the wrong order now (having upgraded from 2.0.x to 2.3.2a). The top one's at the bottom and vice versa. But ONLY FOR ANON USERS! Once I log in all's well! (whether as reg user or admin).

I know about the weight numbers which can be given to each block, but these are set correctly.

Any advice? Thanks.

2
mcleines
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 10:00

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


You must update the block user rights for the different groups in group administration. Go to "modify" the group and click on "Update group". I think the rights are not stored correctly in upgrade process.

3
Anonymous
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 10:13

  • Anonymous

  • Posts: 0

  • Since:


McCleines.....as in "xcGallery McCleines"?

Good to see you on here again - a very warm welcome back from me

PS: thanks for tip - I hadn't spotted that one.

4
mcleines
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 11:16

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Thank you!

I made an upgrade from 2.2.6 to 2.3.2b and have the same issue, but only if I haven't set a module for startpage. If you use "news" as startpage then the blocks were ordered correctly.

Did you have SQL error on upgrade?


5
allnewtome
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 11:35

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I didn't notice any SQL errors. I'll try your fix in post no.2

Thanks

6
Anonymous
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 11:47

  • Anonymous

  • Posts: 0

  • Since:


I haven't had the problem myself. I upgraded from 2.0.18.2 to 2.3.0 initially and have updated incrementally from there. Might be an issue with upgrading from the 2.2.x branch?

You'll be pleased to know that xcGallery 2.0.3 works well with XOOPS 2.3.x

I made a (very) minor hack to allow submission of keywords with the "Upload more pictures" function (search on this site). Another user issued a 2.0.4 version with a couple of other enhancements.

I've tried to contact you on a couple of occasions but without joy. Good to see you here - hang around, eh?

7
allnewtome
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/8 18:04

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


I updated the user group/block permissions but my top page blocks are still in the wrong order

When I upgraded only some of the upgrades went ahead. The others had ticks against them already. Relevant?

8
mcleines
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/9 16:27

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Thanks for xcgal infos!

So, I've tested the site with same XOOPS config on another server and the blocks are displayed correctly. The Config on the first server is:

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.8
MySQL Version - 5.0.32-Debian_7etch8
Server API Version - cgi-fcgi
OS Version - Linux
safe_mode - On
register_globals - Off
magic_quotes_gpc - On
allow_url_fopen - Off
fsockopen - Off

What is your server config?

9
JohnDoo
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/9 17:45

  • JohnDoo

  • Just popping in

  • Posts: 14

  • Since: 2003/9/30


I had the same problem after update from 2.0.18 to 2.3.1. As you say the problem just happens to anonymous users. I tried everything: updating groups permissions, editing blocks, changing weight,... nothing worked.
I finally sorted it out by cloning the blocks and deleting the originals.



10
mcleines
Re: Blocks in wrong order for ANON USERS ONLY on top page after 2.3.2a upgrade
  • 2008/12/9 18:31

  • mcleines

  • Not too shy to talk

  • Posts: 108

  • Since: 2004/10/7


Great, I've found it, but don't know why.

Change line 416 in file /class/xoopsblock.php from
function getAllByGroupModule($groupid$module_id 0$toponlyblock false$visible null$orderby 'b.weight,b.bid'$isactive 1)
to
function getAllByGroupModule($groupid$module_id 0$toponlyblock false$visible null$orderby 'b.weight,m.block_id'$isactive 1)

Login

Who's Online

312 user(s) are online (196 user(s) are browsing Support Forums)


Members: 0


Guests: 312


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits