Title: [Plugin: WORDPRESS VIDEO GALLERY] error loading config.xml
Last modified: August 20, 2016

---

# [Plugin: WORDPRESS VIDEO GALLERY] error loading config.xml

 *  [surfeiro69](https://wordpress.org/support/users/surfeiro69/)
 * (@surfeiro69)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/)
 * when i go to the page with the videos the player say there is an error in loading
   config.xml.
 * [http://wordpress.org/extend/plugins/contus-video-gallery/](http://wordpress.org/extend/plugins/contus-video-gallery/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [arunprasath](https://wordpress.org/support/users/arunprasath/)
 * (@arunprasath)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/#post-2968655)
 * Dear Customer,
 * Please open the configXML.php file in the following file path video-gallery/configXML.
   php and remove the unwanted spaces between the codes and save the files. Now 
   move the saved file to your FTP and overwrite this file. Also please make sure
   that you have provided execute permission(755/777) to the file configXML.php.
   Now go to your front end and check If this is working.
 * Thanks
 *  [travis.dennison](https://wordpress.org/support/users/travisdennison/)
 * (@travisdennison)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/#post-2968678)
 * What unwanted spaces are you referring too? i have delete all the spaces in my
   code and re-uploaded it and i still have the same issues:
 *     ```
       <?php
   
       /* Author : John Thomas M R
        * Email  : johnthomas@contus.in
        * Purpose: Player Configuration Settings
        */
       ob_clean();
       header("cache-control: private");
       header ("Pragma: public");
       header("Content-type: application/xml");
       header("content-type:text/xml;charset=utf-8");
       require_once( dirname(__FILE__) . '/hdflv-config.php');
       global $wpdb;
       global $site_url;
       $settingsRecord = $wpdb->get_row("SELECT * FROM " . $wpdb->prefix . "hdflvvideoshare_settings");
       $ski = $site_url . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/hdflvplayer/skin';
       $skinpath = $ski . '/' . $settingsRecord->skin . '/' . $settingsRecord->skin . '.swf';
       $logoPath = $site_url . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/hdflvplayer/images/';
       $xmlPath = $site_url . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/';
       $playXml = $xmlPath . 'myextractXML.php';
       $langXML = $site_url . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/languageXML.php';
       $emailPath = $site_url . '/wp-content/plugins/' . dirname(plugin_basename(__FILE__)) . '/hdflvplayer/email.php';
       $adsXml = $xmlPath . 'myadsXML.php';
       $timer = $settingsRecord->timer == 1 ? 'true' : 'false';
       $zoom = $settingsRecord->zoom == 1 ? 'true' : 'false';
       $email = $settingsRecord->email ? 'true' : 'false';
       $fullscreen = $settingsRecord->fullscreen == 1 ? 'true' : 'false';
       $autoplay = ($settingsRecord->autoplay == 1) ? 'true' : 'false';
       $playlistauto = ($settingsRecord->playlistauto == 1) ? 'true' : 'false';
       $HD_default = ($settingsRecord->HD_default == 1) ? 'true' : 'false';
       $download = ($settingsRecord->download == 1) ? 'true' : 'false';
       $skin_autohide = ($settingsRecord->skin_autohide == 1) ? 'true' : 'false';
       $embed_visible = ($settingsRecord->embed_visible == 1) ? 'true' : 'false';
       $playlist = ($settingsRecord->playlist == 1) ? 'true' : 'false';
       $debug = ($settingsRecord->debug == 1) ? 'true' : 'false';
       $prerollads  = ($settingsRecord->preroll == 0) ? 'true' : 'false';
       $postrollads = ($settingsRecord->postroll == 0) ? 'true' : 'false';
       /* Configuration Start */
       echo '<?xml version="1.0" encoding="utf-8"?>';
       echo '<config
             buffer="' . $settingsRecord->buffer . '"
             height="' . $settingsRecord->height . '"
             width="' . $settingsRecord->width . '"
             normalscale="' . $settingsRecord->normalscale . '"
             fullscreenscale="' . $settingsRecord->fullscreenscale . '"
             languageXML = "' . $langXML . '"
             logopath="' . $logoPath . $settingsRecord->logopath . '"
             logo_target="'.$settingsRecord->logo_target.'"
             autoplay  ="' . $autoplay . '"
             playlistauto  ="' . $playlistauto . '"
             Volume="' . $settingsRecord->volume . '"
             logoalign="' . $settingsRecord->logoalign . '"
             HD_default="' . $HD_default . '"
             Download="' . $download . '"
             logoalpha = "' . $settingsRecord->logoalpha . '"
             skin_autohide="' . $skin_autohide . '"
             stagecolor="' . $settingsRecord->stagecolor . '"
             scaleToHideLogo = "'.$settingsRecord->hideLogo.'"
             shareURL ="'. $emailPath. '"
             skin="' . $skinpath . '"
             embed_visible="' . $embed_visible . '"
             playlistXML="' . $playXml . '"
             preroll_ads="'.$prerollads.'"
             postroll_ads="'.$postrollads.'"
             adXML="'.$adsXml.'"
             UseYouTubeApi="flash"
             showPlaylist ="' . $playlist . '"
             license = "'.$settingsRecord->license.'"
             debug="' . $debug . '">';
       echo '<timer>' . $timer . '</timer>';
       echo '<zoom>' . $zoom . '</zoom>';
       echo '<email>' . $email . '</email>';
       echo '<fullscreen>' . $fullscreen . '</fullscreen>';
       echo '</config>';
       exit;
       /* Configuration ends */
       exit;
       ?>
       ```
   
 *  [arunprasath](https://wordpress.org/support/users/arunprasath/)
 * (@arunprasath)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/#post-2968679)
 * Hi,
 * If you still face same issues please remove the existing package and install 
   the new package. Please take the backup of existing files and database before
   installing the new package. If you still have difficulties please email us at
   [support@apptha.com](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/support@apptha.com?output_format=md)
   so our support team will help you to resolve this issue.
 * Thanks
    Arun

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WORDPRESS VIDEO GALLERY] error loading config.xml’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contus-video-gallery_ba544b.svg)
 * [WORDPRESS VIDEO GALLERY](https://wordpress.org/plugins/contus-video-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contus-video-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contus-video-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/contus-video-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contus-video-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contus-video-gallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [arunprasath](https://wordpress.org/support/users/arunprasath/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-video-gallery-error-loading-configxml/#post-2968679)
 * Status: not resolved