Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 1506 Просмотров
*

digiTALker

  • Осваиваюсь на форуме
  • 44
  • 0 / 0
Joomla и виртмарт последние на сегодняшний день.

Ссыль из письма:
http://flexifoil.ru/index2.php?page=order.order_print&order_id=1&pshop_mode=admin&option=com_virtuemart&Itemid=4

Результат:
Fatal error: Call to a member function toString() on a non-object in /var/www/vhosts/flexifoil.ru/httpdocs/libraries/joomla/methods.php on line 55
*

adjuster

  • Давно я тут
  • 786
  • 55 / 2
прикрепи файл methods.php
*

digiTALker

  • Осваиваюсь на форуме
  • 44
  • 0 / 0
прикрепи файл methods.php
не могу прикреплять, папка заполнена

Код
<?php
/**
* @version $Id: methods.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla.Framework
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Route handling class
 *
 * @static
 * @package Joomla.Framework
 * @since 1.5
 */
class JRoute
{
/**
* Translates an internal Joomla URL to a humanly readible URL.
*
* @access public
* @param string $url Absolute or Relative URI to Joomla resource
* @param boolean  $xhtml Replace & by &amp; for XML compilance
* @param int $ssl Secure state for the resolved URI
* 1: Make URI secure using global secure site URI
* 0: Leave URI in the same secure state as it was passed to the function
* -1: Make URI unsecure using the global unsecure site URI
* @return The translated humanly readible URL
*/
function _($url, $xhtml = true, $ssl = null)
{
// Get the router
$app = &JFactory::getApplication();
$router = &$app->getRouter();

// Make sure that we have our router
if (! $router) {
return null;
}

if ( (strpos($url, '&')!== 0 ) && (strpos($url, 'index.php')!== 0) ) {
            return $url;
  }

// Build route
$uri = &$router->build($url);
$url = $uri->toString(array('path', 'query', 'fragment'));

// Replace spaces
$url = preg_replace('/\s/u', '%20', $url);

/*
* Get the secure/unsecure URLs.

* If the first 5 characters of the BASE are 'https', then we are on an ssl connection over
* https and need to set our secure URL to the current request URL, if not, and the scheme is
* 'http', then we need to do a quick string manipulation to switch schemes.
*/
$ssl = (int) $ssl;
if ( $ssl )
{
$uri          =& JURI::getInstance();

// Get additional parts
static $prefix;
if ( ! $prefix ) {
$prefix = $uri->toString( array('host', 'port'));
//$prefix .= JURI::base(true);
}

// Determine which scheme we want
$scheme = ( $ssl === 1 )? 'https' : 'http';

// Make sure our url path begins with a slash
if ( ! preg_match('#^/#', $url) ) {
$url = '/' . $url;
}

// Build the URL
$url = $scheme . '://' . $prefix . $url;
}

if($xhtml) {
$url = str_replace( '&', '&amp;', $url );
}

return $url;
}
}

/**
 * Text  handling class
 *
 * @static
 * @package Joomla.Framework
 * @subpackage Language
 * @since 1.5
 */
class JText
{
/**
* Translates a string into the current language
*
* @access public
* @param string $string The string to translate
* @param boolean $jsSafe Make the result javascript safe
* @since 1.5
*
*/
function _($string, $jsSafe = false)
{
$lang =& JFactory::getLanguage();
return $lang->_($string, $jsSafe);
}

/**
* Passes a string thru an sprintf
*
* @access public
* @param format The format string
* @param mixed Mixed number of arguments for the sprintf function
* @since 1.5
*/
function sprintf($string)
{
$lang =& JFactory::getLanguage();
$args = func_get_args();
if (count($args) > 0) {
$args[0] = $lang->_($args[0]);
return call_user_func_array('sprintf', $args);
}
return '';
}

/**
* Passes a string thru an printf
*
* @access public
* @param format The format string
* @param mixed Mixed number of arguments for the sprintf function
* @since 1.5
*/
function printf($string)
{
$lang =& JFactory::getLanguage();
$args = func_get_args();
if (count($args) > 0) {
$args[0] = $lang->_($args[0]);
return call_user_func_array('printf', $args);
}
return '';
}

}
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Поменять в ссылке index.php на алиас меню

Автор sashgera

Ответов: 0
Просмотров: 2787
Последний ответ 03.08.2020, 08:29:14
от sashgera
Форма Ask question (Задать вопрос). Не приходят письма покупателю

Автор Igoritaly

Ответов: 0
Просмотров: 1089
Последний ответ 08.02.2018, 10:00:22
от Igoritaly
Ошибки с VirtueMart

Автор romko

Ответов: 1
Просмотров: 994
Последний ответ 02.04.2014, 16:58:44
от Mishok333
Логотип магазина в шаблоне письма

Автор Mokujin

Ответов: 6
Просмотров: 2690
Последний ответ 19.09.2013, 04:54:52
от ecolora
Редирект на главную при переходе во внутренние страницы админки VirtueMart

Автор Лат

Ответов: 4
Просмотров: 3370
Последний ответ 16.08.2013, 08:59:18
от draff