PDA


View Full Version : Cannot redeclare order_mods() error


johnjohn
11-15-2005, 07:48 PM
Hello,

I've just upgraded my vB to 3.5.1 from 3.0.9. Everything was working great. I have some modules added which don't work anymore. I get a blank page instead and this error message in /usr/local/apache/logs/error_log:

[Tue Nov 15 18:40:31 2005] [error] PHP Fatal error: Cannot redeclare order_mods() (previously declared in /home/hz/public_html/forum/includes/vba_cmps_include_bottom.php:160) in /home/hz/public_html/forum/includes/vba_cmps_include_bottom.php on line 160

This is how my file looks like:

<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC2 ||
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++

define('VBA_PAGE', 'fantastico');

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);

// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================

chdir('/home/hz/public_html/forum');

// ============================================
// No Further Editing Necessary!
// ============================================

require_once('./global.php');

print_portal_output($home);

?>

I've already done the steps on how to integrate vB CMPS with other vB files as described here (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6)...

Can someone please help me?

Thanks,
John

johnjohn
11-16-2005, 09:47 AM
Anyone please?

Brian
11-17-2005, 01:26 PM
I've already done the steps on how to integrate vB CMPS with other vB files as described here (http://www.vbadvanced.com/membersarea.php?do=viewusermanual&productid=4&pageid=6)...
When did you add that code? The code on that page was updated a couple of weeks ago to prevent a problem like you're describing. Also, have you tried turning off all modules that do not come with the CMPS by default?

johnjohn
11-17-2005, 05:00 PM
Hello Brian!

I just added the code, two days ago. Before I add these lines to /includes/functions.php

if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT'))
{
define('SKIP_OUTPUT', true);

global $home;

print_portal_output($home, $vartext);
}
the modules that I created are working but that way I can't include my modules to other pages because they won't show up. And after I add those lines I get that blank page. You know?

If you wish I can PM with the URL but I don't think this would help.

Please help.

Thank you!

johnjohn
11-22-2005, 12:26 PM
Brian, I know you're busy, but please help me out on this...:/