View Single Post
  #2  
Old 11-22-2008, 04:28 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Lightbulb Figured out the issue!

Ok, figured out the issue. php variable $result is being used twice, although $result isn't declared global. $result is local in create_front_addon_array(), but the include_once() also happens within create_front_addon_array() context and thus conflict!!

includes/functions.php

PHP Code:
function create_front_addon_array() {
  ...
  
$result mysql_query();
  while (...) {
    include_once(...);
  }

so here each front addon is 'included' in the PHP sense.

Defensio's front_defensio.php script does this on the first few lines:

$result = mysql_query("SELECT `status` FROM `{$pixelpost_db_prefix}addons` WHERE `addon_name` LIKE '%akismet%' and `type`='front'") or die(mysql_error());
$akismet = mysql_fetch_array($result);
...

If i change $result in front_defensio.php to some other var name, my other front admin addons get loaded. (PAGE_LOADTIME from pixelpost.org)

the mysql_fetch_arrays in create_front_addon_array() are getting interfered with defensio's akismet check query.
Reply With Quote