Errors when installing WP Hot Destinations theme

Hot WordPress Themes Support Forum WordPress Themes Destinations Errors when installing WP Hot Destinations theme

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #420
    Milos Stankovic
    Keymaster

    I receive the following PHP error messages when installing the Hot Destinations theme on my webserver. My server is running the latest release of WordPress, a clean fresh installation.

    Any assistance with sorting this out would be greatly appreciated.

    Thank you.

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 306

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 307
    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 307

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 308

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 308

    Warning: sort() expects parameter 1 to be array, null given in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 309

    Warning: join() [function.join]: Invalid arguments passed in /home/a5649145/public_html/wp-content/themes/wp_hot_destinations/header.php on line 316

    #884
    Milos Stankovic
    Keymaster

    It would appear there is an issue with the array_merge function in header.php. This is what I modified the code to, for testing:

    $bcg_images = array($backgrounds_dir.’*.jpg’);
    /* $bcg_images = array_merge($bcg_images, glob($backgrounds_dir.’*.jpeg’));
    $bcg_images = array_merge($bcg_images, glob($backgrounds_dir.’*.png’));
    $bcg_images = array_merge($bcg_images, glob($backgrounds_dir.’*.gif’));
    */

    Note, the first line had array_merge, which I changed to simply array. The theme works, but the images don’t cycle in the background. After the first one, the background goes white.

    How old is this theme? Which version of PHP and WordPress was it designed for?

    I would appreciate assistance with further isolating and correcting any code issues. At least I’ve managed to give the developers a quick start.

    Thanks.

    #885
    milos
    Moderator

    I checked your site and perhaps you did not accomplish HotStart installation properly. Step by step instructions are here: demo.hotwptemplates.com/destinations/?page_id=242
    When you finish this, you will have exactly the same site as demo.hotwptemplates.com/destinations

    #886
    Milos Stankovic
    Keymaster

    Please see my email response, Milos. I sent you a copy of the code block I modified this morning as a temporary work around.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.