1
scsween
Edit News Item - Template Problem?
  • 2004/2/17 22:20

  • scsween

  • Just popping in

  • Posts: 11

  • Since: 2003/4/17


I don't know if this is a bug, an installation problem, or something I corrupted somehow.

When you edit a news item, the edit news item page is rendered correctly EXCEPT extreme bottom of the page - the footer - the following is rendered. It looks like smarty template content.

Debug is definitely not on. I've tried it with the default template set and theme, no change.

Quote:
{ if ( !empty( $movetotop ) ) { $story -> setPublished( time() ); } } if ( !empty( $autoexpdate ) ) { $expdate = mktime( $autoexphour, $autoexpmin, 0, $autoexpmonth, $autoexpday, $autoexpyear ); $offset = $xoopsUser -> timezone() - $xoopsConfig['server_TZ']; $expdate = $expdate - ( $offset * 3600 ); $story -> setExpired( $expdate ); } } $story -> setApproved( $approve ); $story -> setTopicId( $topicid ); $story -> setTitle( $title ); $story -> setHometext( $hometext ); $story -> setBodytext( $bodytext ); $nohtml = ( empty( $nohtml ) ) ? 0 : 1; $nosmiley = ( empty( $nosmiley ) ) ? 0 : 1; $story -> setNohtml( $nohtml ); $story -> setNosmiley( $nosmiley ); $story -> setIhome( $ihome ); $story -> setTopicalign( $topicalign ); $story -> setTopicdisplay( $topicdisplay ); $story -> store(); $notification_handler = & xoops_gethandler( 'notification' ); $tags = array(); $tags['STORY_NAME'] = $story -> title(); $tags['STORY_URL'] = XOOPS_URL . '/modules/' . $xoopsModule -> getVar( 'dirname' ) . '/article.php?storyid=' . $story -> storyid(); if ( !empty( $isnew ) ) { $notification_handler -> triggerEvent( 'story', $story -> storyid(), 'approve', $tags ); } $notification_handler -> triggerEvent( 'global', 0, 'new_story', $tags ); /* $poster = new XoopsUser($story->uid()); $subject = _AM_ARTPUBLISHED; $message = sprintf(_AM_HELLO,$poster->uname()); $message .= "\n\n"._AM_YOURARTPUB."\n\n"; $message .= _AM_TITLEC.$story->title()."\n"._AM_URLC.XOOPS_URL."/modules/".$xoopsModule->dirname()."/article.php?storyid=".$story->storyid()."\n"._AM_PUBLISHEDC.formatTimestamp($story->published(),"m",0)."\n\n"; $message .= $xoopsConfig['sitename']."\n".XOOPS_URL.""; $xoopsMailer =& getMailer(); $xoopsMailer->useMail(); $xoopsMailer->setToEmails($poster->getVar("email")); $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); $xoopsMailer->setFromName($xoopsConfig['sitename']); $xoopsMailer->setSubject($subject); $xoopsMailer->setBody($message); $xoopsMailer->send(); } */ redirect_header( 'index.php?op=newarticle', 1, _AM_DBUPDATED ); exit(); break; case "delete": if ( !empty( $ok ) ) { if ( empty( $storyid ) ) { redirect_header( 'index.php?op=newarticle', 2, _AM_EMPTYNODELETE ); exit(); } $story = new NewsStory( $storyid ); $story -> delete(); xoops_comment_delete( $xoopsModule -> getVar( 'mid' ), $storyid ); xoops_notification_deletebyitem( $xoopsModule -> getVar( 'mid' ), 'story', $storyid ); redirect_header( 'index.php?op=newarticle', 1, _AM_DBUPDATED ); exit(); } else { xoops_cp_header(); echo "
" . _AM_CONFIG . "
"; xoops_confirm( array( 'op' => 'delete', 'storyid' => $storyid, 'ok' => 1 ), 'index.php', _AM_RUSUREDEL ); } break; case "topicsmanager": topicsmanager(); break; case "addTopic": addTopic(); break; case "delTopic": delTopic(); break; case "modTopic": modTopic(); break; case "modTopicS": modTopicS(); break; case "default": default: xoops_cp_header(); echo "
" . _AM_CONFIG . "
"; echo""; echo " -
"; break; } xoops_cp_footer(); ?> _PEARTICLES . "\n"; echo""; break; } xoops_cp_footer(); ?>


What this is I have no idea. I have not seen this on any other page.

Thanks, SS

2
Mithrandir
Re: Edit News Item - Template Problem?

Which host are you using?

Seems like the page is not completely interpreted.

3
scsween
Re: Edit News Item - Template Problem?
  • 2004/2/17 22:48

  • scsween

  • Just popping in

  • Posts: 11

  • Since: 2003/4/17


My hosting company is http://www.modwest.com - they're pretty good and up to date w/ the libraries typically, so I'd be surprised if the problem were on their end.

In case I was unclear, the page looks perfectly normal w/ the exception of the junk. And the junk is left justified below the "Powered by XOOPS 2.0.6 © 2001-2003 The XOOPS Project" banner.

4
Mithrandir
Re: Edit News Item - Template Problem?

Could you pop in a link to the site so we can take a closer look?

Edit: Forget that - if it is only on the edit news screen, we won't be able to access it anyway.

5
scsween
Re: Edit News Item - Template Problem?
  • 2004/2/17 23:29

  • scsween

  • Just popping in

  • Posts: 11

  • Since: 2003/4/17


Here is an image, if it helps.

Resized Image

6
tl
Re: Edit News Item - Template Problem?
  • 2004/2/18 1:25

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


your /modules/news/admin/index.php file might be corrupted. I would re-upload the file to see if the problem would go away.

7
scsween
Re: Edit News Item - Template Problem?
  • 2004/2/18 1:48

  • scsween

  • Just popping in

  • Posts: 11

  • Since: 2003/4/17


Excellent!

Great catch. Probably was fouled in the ftp transfer of the file. THANK YOU!

Now for the bonus points, how can I - in some automated fashion - find out what other files are corrupted? Not a big deal but if you have a good idea . . .

Login

Who's Online

373 user(s) are online (213 user(s) are browsing Support Forums)


Members: 0


Guests: 373


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