News:

Wondering if this will always be free?  See why free is better.

Main Menu

8: Undefined variable:

Started by searchgr, December 22, 2009, 01:58:39 AM

Previous topic - Next topic

searchgr

The following errors appear when i remove posts or merge topics in post-moderated boards. Can you help? (Option: Remove or Approve)

8: Undefined variable: delete_own
File: /home/****/public_html/Sources/RemoveTopic.php
Line: 612


8: Undefined index: description
File: /home/****/public_html/Themes/default/Errors.template.php (generic_menu_sidebar_above sub template - eval?)
Line: 264

8: Undefined index: title

File: /home/***/public_html/Themes/default/Errors.template.php (generic_menu_sidebar_above sub template - eval?)
Line: 256

JBlaze

What version SMF are you using?
Any mods installed? If so, which ones?
Jason Clemons
Former Team Member 2009 - 2012

searchgr

smf 2 rc2 curve

Aeva ~ Auto-Embed Video & Audio      7.0
Member Color Link      3.0.7
Search Focus Dropdown      1.4

searchgr

612:     

if ($modSettings['postmod_active'] && !$row['approved'] && $row['id_member'] != $user_info['id'] && !$delete_own)

searchgr


N3RVE

I locked your other topic, please use one topic for one problem. Be patient and someone will reply.

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

retrib

http://dragons-portal.org/forum/index.php?action=moderate;area=postmod;sa=replies;start=0;c79afbbce3=d74f6b5e2aa691fadf14344f588a4dce;delete=1469
8: Undefined variable: delete_own
Файл: C:/xampp/htdocs/forum/Sources/RemoveTopic.php
Строка: 622


The problem is still there somewhere. SMF 2.0 RC3

#622
if ($modSettings['postmod_active'] && !$row['approved'] && $row['id_member'] != $user_info['id'] && !$delete_own)

mb change to

if ($modSettings['postmod_active'] && !$row['approved'] && $row['id_member'] != $user_info['id'] && !isset($delete_own))

???

searchgr

It seems that few people use the 'Post Moderation' profile :) - or they don't remove any messages.

retrib

No it seems that this problem show up in some special circumstances. Dunno why, core scripters should.

CapadY

Quote from: searchgr on December 22, 2009, 02:10:29 AM
smf 2 rc2 curve

As far as I know that's an not working combination.
Curve is only suitable from SMF2RC3
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

searchgr

sorry, i was meaning the default theme.

cicka

Can you globalize the $delete_own variable? Clear the error log and see if the error will appear again or will go away.


Advertisement: