1
peterr
Smartsection bug (blank page)
  • 2006/8/14 5:09

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Since updating to the latest version of XOOPS (2.0.14), everything has been working fine, except for Smartsection.

When I create a new article, all I get is a blank page. It is not a PHP error, have checked that. What is happening, is the artcile is being added to the table "smartsection_items" and setting the column "categoryid" to zero.

This results in the blank page; I have had to go into the db, and modify the column "categoryid" for any new articles. Once that is done, all is okay.

From the Smartsection files, it looks like the version I'm using is Version 1.0.5 Beta 1.
NO to the Microsoft Office format as an ISO standard.
Sign the petition

2
incama
Re: Smartsection bug (blank page)
  • 2006/8/14 7:00

  • incama

  • Friend of XOOPS

  • Posts: 513

  • Since: 2003/10/24


There are indeed some problems with the smartsection, on the Smartfactory there is already a thread about this:

http://smartfactory.ca/modules/newbb/viewtopic.php?viewmode=flat&order=ASC&topic_id=1121&forum=5

Hope this helps;)
Webdesign
Sitting Ducks?!
I hate politics, give me a stylie instead...

3
3lr0n
Re: Smartsection bug (blank page)
  • 2006/8/14 8:28

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Peterr i had the same problem..

it didnt work creating an article from admin side, but if u create it from user side (/modules/smartsection/submit.php) yo will be able to modify it and publish.

Im allready post in smartfactory forums.. but dont have any reply atm... dawn holidays ..lol
Spanish Overclocking Community xoops based site : www.overclocking.es

4
peterr
Re: Smartsection bug (blank page)
  • 2006/8/14 9:20

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


Thanks icama and 3lr0n for your replies, most helpful. I read the replies on the Smartsection forum also, but nothing there about category ID.

When sumitting an article, the url is:

http://examle.com/modules/smartsection/admin/item.php?op=mod

and I noticed the code from other drop-down boxes is like this ..

<select id='summarySize' onchange='setVisible("xoopsHiddenText");setElementSize("xoopsHiddenText",this.options[this.selectedIndex].value);'>
<
option value='SIZE'>SIZE</option>
<
option value='xx-small'>xx-small</option>
<
option value='x-small'>x-small</option>
<
option value='small'>small</option>
<
option value='medium'>medium</option>
<
option value='large'>large</option>
<
option value='x-large'>x-large</option>
<
option value='xx-large'>xx-large</option>
</
select>


however, for the category dropdown box, this is the code ...

<select name='categoryid'>
<
option value='1'>Category 1</option>
<
option value='2'>Category 2</option>
<
option value='3'>Category 3</option>
</
select>


the javascript onchange event is missing ?? The code in itemp.php, in relation to the category ID is ..

$sel_categoryid = isset($_GET['categoryid']) ? $_GET['categoryid'] : 0;
$categoryObj->setVar('categoryid'$sel_categoryid);


for some reason, this worked okay (no blank page) in XOOPS 2.0.13 ??

Strange eh !!
NO to the Microsoft Office format as an ISO standard.
Sign the petition

5
peterr
Re: Smartsection bug (blank page)
  • 2006/8/14 10:02

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


The reply by skalpa (Posted: 2006/5/30 11:09 Updated: 2006/5/30 11:09) in this news story on Release of SmartSection 2.1 RC 1 is related to the category ID. I wonder if that is the bug fix ??
NO to the Microsoft Office format as an ISO standard.
Sign the petition

6
peterr
Re: Smartsection bug (blank page)
  • 2006/8/14 12:29

  • peterr

  • Just can't stay away

  • Posts: 518

  • Since: 2004/8/5 9


I _think_ I have found the problem, that is, why every new article is being added with a category value of zero.

If I display the 'page info' under Firefox, there are actually two fieldnames called "categoryid". Viewing the generated source code from /smartsection/admin/item.php verifies this, two fieldnames with the same name.

Here is the culprit ...

<input type='hidden' name='categoryid' id='categoryid' value='0' /><input type='hidden' name='itemid' id='itemid' value='0' />


which appears to be generated by line 212 of /smartsection/admin/item.php

$sform->addElement(new XoopsFormHidden('categoryid'$categoryObj->categoryid()));


should this line be commented out ?
NO to the Microsoft Office format as an ISO standard.
Sign the petition

7
brighter
Re: Smartsection bug (blank page)
  • 2006/8/20 16:38

  • brighter

  • Just popping in

  • Posts: 25

  • Since: 2006/8/14


For me, /modules/smartsection/ gives a blank page, only for urses in groups that have admin access to smartSection. Has anyone else noticed that? Might help narrow it down.

Elissa

8
allnewtome
Re: Smartsection bug (blank page)
  • 2006/8/20 22:40

  • allnewtome

  • Not too shy to talk

  • Posts: 175

  • Since: 2005/11/30


Same problem. Just downloaded XOOPS 2.0.14 and several modules. All work except smartsection 2 rc2 which gives blank page at user end (admin side works). Anyone overcome this hurdle? Blank whether admin or ordinary user logged in.

9
brighter
Re: Smartsection bug (blank page)
  • 2006/8/20 23:48

  • brighter

  • Just popping in

  • Posts: 25

  • Since: 2006/8/14


On the Smart site, it says SmartSection 2.x is for XOOPS 2.2,and 1.x is for XOOPS 2.0.x.

Anyway, I checked the database and a couple of records had 0 as the category and when I fixed that it all worked again.

Hope that helps.

Elissa

10
Methis
Re: Smartsection bug (blank page)
  • 2006/8/21 11:22

  • Methis

  • Just popping in

  • Posts: 52

  • Since: 2005/6/25


the same to me...but in a random way!

Login

Who's Online

197 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 197


more...

Donat-O-Meter

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

Latest GitHub Commits