Белый экран вместо сайта

Тема в разделе "Ошибки при работе с Joomla", создана пользователем Santyagos, 20.06.2012.

  1. Offline

    Santyagos Недавно здесь

    Регистрация:
    16.11.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской
    Здравствуйте!
    Диспозиция Joomla 1.5.22 VirtueMart 1.1.9


    При входе в админку все работает, а при заходе на сайт белый экран.
    Включил показ ошибок, вот что выдает:

    Код (CODE):
    1. Warning: require(/home/i/in2ru/public_html/modules/mod_virtuemart_categories/tmpl/mooexlorer.php) [function.require]: failed to open stream: No such file or directory in /home/i/in2ru/public_html/modules/mod_virtuemart_categories/mod_virtuemart_categories.php on line 17
    2.  
    3. Fatal error: require() [function.require]: Failed opening required '/home/i/in2ru/public_html/modules/mod_virtuemart_categories/tmpl/mooexlorer.php' (include_path='.:/opt/php5/lib/php:/opt/php5/lib/ZendFramework/library') in /home/i/in2ru/public_html/modules/mod_virtuemart_categories/mod_virtuemart_categories.php on line 17


    Привожу текст mod_virtuemart_categories.php
    (17 строка последняя)


    Код (PHP):
    1. <?php
    2. /**
    3. * VirtueMart Categories Module
    4. * NOTE: THIS MODULE REQUIRES THE PHPSHOP COMPONENT!
    5. *
    6. * @copyright (C) 2010 JFactory Project
    7. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    8. * This extention is Free Software.
    9. */
    10.  
    11. // no direct access
    12. defined('_JEXEC') or die('Restricted access');
    13.  
    14. // Include the syndicate functions only once
    15. require_once (dirname(__FILE__).DS.'helper.php');
    16.  
    17. require( JModuleHelper::getLayoutPath('mod_virtuemart_categories', $params->get('layout', 'default')) );


    Помогите пожалуйста! Нужно решение которое 100% сохранит все товары магазина.
    Заранее благодарю.
     
  2.  
  3. Offline

    Santyagos Недавно здесь

    Регистрация:
    16.11.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской
    Пробовал менять шаблоны, все равно не работает
     
  4. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Ищем файл modules/mod_virtuemart_categories/tmpl/mooexlorer.php
     
  5. Offline

    Santyagos Недавно здесь

    Регистрация:
    16.11.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской
    А нет такого файла. Вот список этой папки

    accordion.php
    1.64 KB -rw-r--r-- 14.12.2011

    accordion_assets.php
    2.05 KB -rw-r--r-- 14.12.2011

    default.php
    1.48 KB -rw-r--r-- 14.12.2011

    mootree.php
    1.67 KB -rw-r--r-- 14.12.2011

    mootree_assets.php
    2.66 KB -rw-r--r-- 14.12.2011

    select.php
     
  6. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Переключи на другой шаблон модуля .Ну а так- нужно смотреть в каталоге /template/html/mod_virtuemart_categories/tmpl/mooexlorer.php
     
  7. Offline

    Santyagos Недавно здесь

    Регистрация:
    16.11.2011
    Сообщения:
    4
    Симпатии:
    0
    Пол:
    Мужской
    Новая ошибка
    Fatal error: Cannot redeclare class convertECB in /home/i/in2ru/public_html/administrator/components/com_virtuemart/classes/currency/convertECB.php on line 24

    Привожу пример этого файла
    Код (PHP):
    1. <?php
    2. if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
    3. /**
    4. * ECB Currency Converter Module
    5. *
    6. * @version $Id: convertECB.php 1948 2009-09-30 14:32:48Z soeren_nb $
    7. * @package VirtueMart
    8. * @subpackage classes
    9. * @copyright Copyright (C) 2004-2007 soeren - All rights reserved.
    10. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
    11. * VirtueMart is free software. This version may have been modified pursuant
    12. * to the GNU General Public License, and as distributed it includes or
    13. * is derivative of works licensed under the GNU General Public License or
    14. * other free or open source software licenses.
    15. * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
    16. *
    17. * http://virtuemart.net
    18. */
    19.  
    20. /**
    21.  * This class uses the currency rates provided by an XML file from the European Central Bank
    22.  * Requires cURL or allow_url_fopen
    23.  */
    24. class convertECB {
    25.    
    26.     var $archive = true;
    27.     var $last_updated = '';
    28.    
    29.     var $document_address = 'http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml';
    30.    
    31.     var $info_address = 'http://www.ecb.int/stats/eurofxref/';
    32.     var $supplier = 'European Central Bank';
    33.    
    34.     /**
    35.      * Initializes the global currency converter array
    36.      *
    37.      * @return mixed
    38.      */
    39.     function init() {
    40.         global $mosConfig_cachepath, $mosConfig_absolute_path,
    41.                 $vendor_currency, $vmLogger;
    42.                
    43.         if( !is_array($GLOBALS['converter_array']) && $GLOBALS['converter_array'] !== -1 ) {
    44.             setlocale(LC_TIME, "en-GB");
    45.             $now = time() + 3600; // Time in ECB (Germany) is GMT + 1 hour (3600 seconds)
    46.             if (date("I")) {
    47.                 $now += 3600; // Adjust for daylight saving time
    48.             }
    49.             $weekday_now_local = gmdate('w', $now); // week day, important: week starts with sunday (= 0) !!
    50.             $date_now_local = gmdate('Ymd', $now);
    51.             $time_now_local = gmdate('Hi', $now);
    52.             $time_ecb_update = '1415';
    53.             if( is_writable($mosConfig_cachepath) ) {
    54.                 $store_path = $mosConfig_cachepath;
    55.             }
    56.             else {
    57.                 $store_path = $mosConfig_absolute_path."/media";
    58.             }
    59.              
    60.             $archivefile_name = $store_path.'/daily.xml';
    61.             $ecb_filename = $this->document_address;
    62.             $val = '';
    63.  
    64.        
    65.             if(file_exists($archivefile_name) && filesize( $archivefile_name ) > 0 ) {
    66.                 // timestamp for the Filename
    67.                 $file_datestamp = date('Ymd', filemtime($archivefile_name));
    68.                
    69.                 // check if today is a weekday - no updates on weekends
    70.                 if( date( 'w' ) > 0 && date( 'w' ) < 6
    71.                     // compare filedate and actual date
    72.                     && $file_datestamp != $date_now_local
    73.                     // if localtime is greater then ecb-update-time go on to update and write files
    74.                     && $time_now_local > $time_ecb_update) {
    75.                     $curr_filename = $ecb_filename;
    76.                 }
    77.                 else {
    78.                     $curr_filename = $archivefile_name;
    79.                     $this->last_updated = $file_datestamp;
    80.                     $this->archive = false;
    81.                 }
    82.             }
    83.             else {
    84.                 $curr_filename = $ecb_filename;
    85.             }
    86.              
    87.             if( !is_writable( $store_path )) {
    88.               $this->archive = false;
    89.               $vmLogger->debug( "The file $archivefile_name can't be created. The directory $store_path is not writable" );
    90.             }
    91.             if( $curr_filename == $ecb_filename ) {
    92.                 // Fetch the file from the internet
    93.                 require_once( CLASSPATH.'connectionTools.class.php');
    94.                 $contents = vmConnector::handleCommunication( $curr_filename );
    95.                 $this->last_updated = date('Ymd');
    96.             }
    97.             else {
    98.                 $contents = @file_get_contents( $curr_filename );
    99.             }
    100.             if( $contents ) {
    101.                 // if archivefile does not exist
    102.                 if( $this->archive ) {
    103.                     // now write new file
    104.                     file_put_contents( $archivefile_name, $contents );
    105.                 }
    106.        
    107.                 $contents = str_replace ("<Cube currency='USD'", " <Cube currency='EUR' rate='1'/> <Cube currency='USD'", $contents);
    108.                
    109.                 /* XML Parsing */
    110.                 require_once( $mosConfig_absolute_path. '/includes/domit/xml_domit_lite_include.php' );
    111.                 $xmlDoc = new DOMIT_Lite_Document();
    112.                 if( !$xmlDoc->parseXML( $contents, false, true ) ) {
    113.                     $vmLogger->err( 'Failed to parse the Currency Converter XML document.');
    114.                     $_SESSION['product_currency'] = $GLOBALS['product_currency'] = $vendor_currency;
    115.                     return false;
    116.                 }
    117.                
    118.                 $currency_list = $xmlDoc->getElementsByTagName( "Cube" );
    119.                 // Loop through the Currency List
    120.                 for ($i = 0; $i < $currency_list->getLength(); $i++) {
    121.                     $currNode =& $currency_list->item($i);
    122.                     $currency[$currNode->getAttribute("currency")] = $currNode->getAttribute("rate");
    123.                     unset( $currNode );
    124.                 }
    125.                 $GLOBALS['converter_array'] = $currency;
    126.             }
    127.             else {
    128.                 $GLOBALS['converter_array'] = -1;
    129.                 $vmLogger->err( 'Failed to retrieve the Currency Converter XML document.');
    130.                 $_SESSION['product_currency'] = $GLOBALS['product_currency'] = $vendor_currency;
    131.                 return false;
    132.             }
    133.         }
    134.         return true;
    135.     }
    136.     /**
    137.      * Converts an amount from one currency into another using
    138.      * the rate conversion table from the European Central Bank
    139.      *
    140.      * @param float $amountA
    141.      * @param string $currA defaults to $vendor_currency
    142.      * @param string $currB defaults to $GLOBALS['product_currency'] (and that defaults to $vendor_currency)
    143.      * @return mixed The converted amount when successful, false on failure
    144.      */
    145.     function convert( $amountA, $currA='', $currB='' ) {
    146.         global $vendor_currency;
    147.    
    148.         // global $vendor_currency is DEFAULT!
    149.         if( !$currA ) {
    150.             $currA = $vendor_currency;
    151.         }
    152.         if( !$currB ) {
    153.             $currB = $GLOBALS['product_currency'];
    154.         }
    155.         // If both currency codes match, do nothing
    156.         if( $currA == $currB ) {       
    157.             return $amountA;
    158.         }
    159.         if( !$this->init()) {
    160.             $GLOBALS['product_currency'] = $vendor_currency;
    161.             return $amountA;
    162.         }
    163.         $valA = isset( $GLOBALS['converter_array'][$currA] ) ? $GLOBALS['converter_array'][$currA] : 1;
    164.         $valB = isset( $GLOBALS['converter_array'][$currB] ) ? $GLOBALS['converter_array'][$currB] : 1;
    165.        
    166.         $val = $amountA * $valB / $valA;
    167.         //$vmLogger->debug('Converted '.$amountA.' '.$currA.' to '.$val.' '.$currB);
    168.        
    169.         return $val;
    170.     } // end function convertecb
    171. }
    172. ?>
     

Поделиться этой страницей

Загрузка...