Results 1 to 4 of 4

array_merge() [function.array-merge]: Argument #1 is not an array

This is a discussion on array_merge() [function.array-merge]: Argument #1 is not an array within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Hi, At our forum Diät mit Abnehmen.com - Diät, fitness, fasten, Fettabsaugung, Ernährung... we have following setup: Apache 2.2.3 PHP ...

  1. #1
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times

    array_merge() [function.array-merge]: Argument #1 is not an array

    Hi,

    At our forum Diät mit Abnehmen.com - Diät, fitness, fasten, Fettabsaugung, Ernährung... we have following setup:
    Apache 2.2.3
    PHP 5.2.0
    Vbulletin 3.6.4
    vBSEO 3.0.0 RC8
    vBadvanced CMPS v2.2.1

    this Error happens if vbseo is enabled with "new-post" "last-post" links:

    PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 9
    PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 27
    PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 35
    SourceCode vba_cmps_include_template.php
    PHP Code:
    <?php
    $phrasegroups 
    = @array_merge($phrasegroups,
            array(
                    
    'calendar',
                    
    'adv_portal',
                    
    'postbit'
            
    )
    );

    $specialtemplates = @array_merge($specialtemplates,
            array(
                    
    'adv_modules',
                    
    'adv_portal_opts',
                    
    'adv_portal_page',
                    
    'adv_portal_tpst',
                    
    'attachmentcache',
                    
    'bbcodecache',
                    
    'birthdaycache',
                    
    'eventcache',
                    
    'iconcache',
                    
    'maxloggedin',
                    
    'rankphp',
                    
    'smiliecache',
                    
    'userstats'
            
    )
    );

    $globaltemplates = @array_merge($globaltemplates,
            array(
                    
    'adv_portal',
                    
    'adv_portal_footer',
                    
    'adv_portal_nodisplay'
            
    )
    );
    ?>

    EDIT: The @ signs infront the array_merge functions were added by me to suppress the errormessages
    Last edited by Eagle; 02-28-2007 at 04:11 PM.

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Hello,

    please try to manually enable this option in config_vbseo.php file:
    PHP Code:
        define('VBSEO_NEW_LAST_POST_COOKIE',1); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member
    Real Name
    Carsten
    Join Date
    May 2006
    Posts
    54
    Liked
    0 times
    Did not help

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    Could you please open a support ticket with ftp access for troubleshooting?
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. whoa, tons of errors
    By mindhunter77 in forum Troubleshooting
    Replies: 5
    Last Post: 03-10-2006, 04:39 AM
  2. adding my vbadvanced pages....
    By BamaStangGuy in forum General Discussion
    Replies: 8
    Last Post: 12-12-2005, 11: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
  •