HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Error when posting to forum

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#86767 (In Topic #17718)
Avatar

Community saint

I received the following error when making a forum post. The entry is posted in the forum so I suspect that this might have something to do with the antispam patch.

Code

An error has occurred

PHP NOTICE [8] Undefined variable: a_also_involving in sources/support.php on line 1109 (version: 8.1, PHP version: 5.2.17, URL: /forum/topics/_add_reply.htm)

Expand: Stack Trace Stack Trace


Bob
Back to the top
 
Posted
Rating:
#86768
Avatar

Community saint

Maybe not antispam. It's from this block code about syndication in /sources/support.php (line 1109 in bold):
/**
 * Syndicate human-intended descriptions of activities performed to the internal wall, and external listeners.
 *
 * @param  string         Language string code
 * @param  string         Label 1 (given as a parameter to the language string code)
 * @param  string         Label 2 (given as a parameter to the language string code)
 * @param  string         Label 3 (given as a parameter to the language string code)
 * @param  string         Page link 1
 * @param  string         Page link 2
 * @param  string         Page link 3
 * @param  string         Addon that caused the event
 * @param  BINARY         Whether this post should be public or friends-only
 * @param  ?MEMBER      Member being written for (NULL: current member)
 * @param  boolean      Whether to push this out as a site event if user requested
 * @param  ?MEMBER      Member also 'intimately' involved, such as a content submitter who is a friend (NULL: none)
 */
function syndicate_described_activity($a_language_string_code='',$a_l
abel_1='',$a_label_2='',$a_label_3='',$a_pagelink_1='',$a_pag
elink_2='',$a_pagelink_3='',$a_addon='',$a_is_public=1,$a_mem
ber_id=NULL,$sitewide_too=false,$also_involving=NULL)
{
   if (running_script('install')) return;
   $hooks=find_all_hooks('systems','activities');
   foreach (array_keys($hooks) as $hook) // We only expect one actually
   {
      require_code('hooks/systems/activi
ties/'.$hook);
      $ob=object_factory('Activity_'.$ho
ok);
      if (get_param_integer('keep_debug_notifications',0)==1)
      {
         $ob->syndicate_descri
bed_activity($a_language_string_code,$a_label_1,$a_label_2,$a
_label_3,$a_pagelink_1,$a_pagelink_2,$a_pagelink_3,$a_addon,$
a_is_public,$a_member_id,$sitewide_too,$a_also_involving);
      } else
      {
         register_shutdown_fun
ction(array($ob,'syndicate_described_activity'),$a_language_s
tring_code,$a_label_1,$a_label_2,$a_label_3,$a_pagelink_1,$a_
pagelink_2,$a_pagelink_3,$a_addon,$a_is_public,$a_member_id,$
sitewide_too,$a_also_involving);

      }
   }
}

Any ideas what could be wrong?

Bob
Back to the top
 
Posted
Item has a rating of 5 (Liked by BobSLiked by Fletch)  
Rating:
#86770
Avatar

Community saint

Looks like a typo. Try changing ,$also_involving=NULL to ,$a_also_involving=NULL.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#86775
Avatar

temp1024 is right, that must have been a bug from when this snapshot was taken.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#86814
Avatar

Community saint

Thanks temp, that fixed it right up.

Oh, and your code-reading skills seem to be quite intact.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: