INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

2.png8.png9.png8.png7.png4.png1.png
Today79
Yesterday798
This week5997
This month18866
Total2898741

Visitor Info

  • IP: 3.140.198.173
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

3
Online

niedziela, 28 kwiecień 2024 02:53

Error - PHP Warning jcomments joomla 3.8

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna

Error - PHP Warning jcomments joomla 3.8

 0 - The file Cache Storage is not supported on this platform.

W logach znajdujemy następujący błąd:

PHP Warning: include_once (/www/webpage/components/com_jcomments/jcomments.legacy.php): failed to open stream: No such file or directory in /www/webpage/plugins/content/jcomments/jcomments.php on line 14

PHP Warning: include_once(): Gailed opening 'www/webpage/components/com_jcomments/jcomments.legacy.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /www/webpage/plugins/content/jcomments/jcomments.php on line 14

 

problem rozwiązany należy usunąć komponent jcomments który powoduje błąd na stronie joomla.

Joomla 3.6 - 3.7 - biała strona administratora - Fatal error login.php

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna

Joomla 3.6 - 3.7 - biała strona administratora - Fatal error login.php

Błąd na stronie administracyjnej joomla - po wpisaniu hasła strona administratora joomla się nie wyświetla.

W logach znajdujemy następujący błąd:

Notice: Undefined offset: 0 in /www/site/libraries/vendor/joomla/input/src/Input.php on line 313, referer: http://webpage/administrator

Fatal error: Call to a member function get() on null in /www/administrator/components/com_login/models/login.php on line 33 referer: http://webpage/administrator

 

Błądny skrypt - login.php - rozmiar 4525 B

/**
* @package Joomla.Administrator
* @subpackage com_login
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights r
eserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

/**
* Login Model
*
* @since 1.5
*/
class LoginModelLogin extends JModelLegacy
{
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @return void
*
* @since 1.6
*/
protected function populateState()
{
$input = JFactory::getApplication()->input->getInputForRequestMethod();

$credentials = array(
'username' => $input->get('username', '', 'USERNAME'),
'password' => $input->get('passwd', '', 'RAW'),
'secretkey' => $input->get('secretkey', '', 'RAW'),
);

$this->setState('credentials', $credentials);

// Check for return URL from the request first.
if ($return = $input->get('return', '', 'BASE64'))
{
$return = base64_decode($return);

if (!JUri::isInternal($return))
{
$return = '';
}
}

// Set the return URL if empty.
if (empty($return))
{
$return = 'index.php';

 poprawny login.php - rozmiar - 4579 B

/**
* @package Joomla.Administrator
* @subpackage com_login
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

/**
* Login Model
*
* @since 1.5
*/
class LoginModelLogin extends JModelLegacy
{
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @return void
*
* @since 1.6
*/
protected function populateState()
{
$app = JFactory::getApplication();

$input = $app->input;
$method = $input->getMethod();

$credentials = array(
'username' => $input->$method->get('username', '', 'USERNAME'),
'password' => $input->$method->get('passwd', '', 'RAW'),
'secretkey' => $input->$method->get('secretkey', '', 'RAW'),
);
$this->setState('credentials', $credentials);

// Check for return URL from the request first.
if ($return = $input->$method->get('return', '', 'BASE64'))
{
$return = base64_decode($return);

if (!JUri::isInternal($return))
{
$return = '';
}
}

// Set the return URL if empty.
if (empty($return))
{
$return = 'index.php';

 problem rozwiązany należy zmienić plik login.php - można przegrać go ze starszej wersji joomla

Wyświetlanie artykułu na stronie startowej joomla 3.x

Ocena użytkowników: 1 / 5

Gwiazdka aktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna

Wyświetlanie artykułu na stronie startowej joomla 3.x

Opcje ukladu joomla

Domyślnie Joomla 3.x pokazuje na pierwszej stronie  pełny tekst artykułu a kolejne artykuły wyświetla w trzech kolumnach. Piąty artykuł ukaże się jako link na dole strony.

Można  zmienić sposób wyświetlania artykułów przez kartę Opcje układu w pozycji menu (Menu -> Main Menu -> Pozycja menu -> Opcje układu Tab).

Opcje ukladu joomlaPozycja główna - ilość artukułów o pełnej szerokości okna

Pozostałych pozycji - ilość pozostałych wyświetlanych artykułów

Kolumn - w ilu kolumnach mają być wyświetlane pozostałe artykuły

Liczba odnośników - do ilu kolejnych artykułów na stronie będzie odnośnik.

Jeżeli chcemy by wszystkie artykuły w Joomla 3.x były w jednej kolumnie w opcji kolumny wybieramy 0.

Search