Results 1 to 12 of 12

functions.php on line 4236

This is a discussion on functions.php on line 4236 within the Troubleshooting forums, part of the vBSEO SEO Plugin category; since updating to vbseo3 I get the following error when post some threads: Fatal error: Call to undefined function: print_portal_output() ...

  1. #1
    Member
    Join Date
    Oct 2005
    Posts
    49
    Liked
    0 times

    functions.php on line 4236

    since updating to vbseo3 I get the following error when post some threads:

    Fatal error: Call to undefined function: print_portal_output() in /home/wildabou/public_html/forums/includes/functions.php on line 4236

    the threads still post, but could this be related to vbseo or just a coincidence?

  2. #2
    Member
    Join Date
    Oct 2005
    Posts
    49
    Liked
    0 times
    this is the code from the functions.php

    PHP Code:
    Finishes off the current page (using templates), prints it out to the browser and halts execution
    *
    * @
    param    string    The HTML of the page to be printed
    * @param    boolean    Send the content length header?
    */
    function 
    print_output($vartext$sendheader true)
    {
        global 
    $pagestarttime$querytime$vbulletin;
        global 
    $vbphrase$stylevar;

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

            global 
    $home;

            
    print_portal_output($home$vartext);
        }

        if (
    $vbulletin->options['addtemplatename'])
        {
            if (
    $doctypepos = @strpos($vartext$stylevar['htmldoctype']))
            {
                
    $comment substr($vartext0$doctypepos);
                
    $vartext substr($vartext$doctypepos strlen($stylevar['htmldoctype']));
                
    $vartext $stylevar['htmldoctype'] . "\n" $comment $vartext;
            }
        }

        if (!empty(
    $vbulletin->db->explain))
        {
            
    $pageendtime microtime();

            
    $starttime explode(' '$pagestarttime);
            
    $endtime explode(' '$pageendtime);

            
    $totaltime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];

            
    $vartext .= "<!-- Page generated in " vb_number_format($totaltime5) . " seconds with " $vbulletin->db->querycount " queries -->";
        } 
    4236 is the line:

    PHP Code:
            print_portal_output($home$vartext); 

  3. #3
    Senior Member Code Monkey's Avatar
    Real Name
    Code Monkey
    Join Date
    Aug 2006
    Posts
    780
    Liked
    0 times
    That looks like a vbadvanced issue.

  4. #4
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    13 times
    Yes, print_portal_output() is a vBadvanced CMPS issue.

  5. #5
    Member
    Join Date
    Oct 2005
    Posts
    49
    Liked
    0 times
    but it hasn't been an issue for the past two years, then suddenly it pops up when I updated to vbseo3

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    please try to change this line:
    PHP Code:
    if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP')) 
    to:
    PHP Code:
    if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP') AND function_exists('print_portal_output')) 
    Last edited by Oleg Ignatiuk; 09-18-2006 at 07:08 PM.

  7. #7
    Member
    Real Name
    eric
    Join Date
    Apr 2006
    Posts
    60
    Liked
    0 times
    fixed my problem, thanks a million. i searched for my error before, but didn't see this thread

  8. #8
    Member
    Real Name
    John Gonzalez
    Join Date
    Sep 2005
    Posts
    71
    Liked
    0 times
    Just for the record, after I made the above change I also had to make the same change into the vba_cmps_include_output.php in the includes folder for the error to go away.

  9. #9
    Senior Member KW802's Avatar
    Real Name
    Kevin
    Join Date
    Jan 2006
    Posts
    163
    Liked
    0 times
    What versions of CMPS are you guys using? The latest build (3.0 RC2) does not seem to have this issue with vB 3.6.8 and vBSEO 3.0.1 on any of my sites.

  10. #10
    Member
    Real Name
    Danny
    Join Date
    Aug 2008
    Posts
    36
    Liked
    0 times
    I have this problem but dont seem able to find;

    Code:
       if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))  
    In the functions file?

  11. #11
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    This thread is 2 years old... it's probably an older version.

  12. #12
    Junior Member
    Real Name
    Roms
    Join Date
    Dec 2006
    Location
    Western United States
    Posts
    9
    Liked
    0 times
    Quote Originally Posted by Danny1878 View Post
    I have this problem but dont seem able to find;

    Code:
       if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))  
    In the functions file?
    Just change the vba_cmps_include_output.php file and it should fix your problem (Just delete that line of code and add the new line...)

Similar Threads

  1. Some extreme issues need help on fixing.
    By pspcrazy in forum Troubleshooting
    Replies: 14
    Last Post: 03-14-2006, 03:40 AM
  2. whoa, tons of errors
    By mindhunter77 in forum Troubleshooting
    Replies: 5
    Last Post: 03-10-2006, 03:39 AM
  3. only able to view 1/3 of vbseo config area
    By mindhunter77 in forum Troubleshooting
    Replies: 5
    Last Post: 01-31-2006, 04:46 PM
  4. adding my vbadvanced pages....
    By BamaStangGuy in forum General Discussion
    Replies: 8
    Last Post: 12-12-2005, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •