?
avatar fluctuate
fluctuate
14 Sep 2017

Steps to reproduce the issue

  1. Active SEO Settings, only "SEF" & "Use URL Rewriting" option.

  2. Disable plugin "System - Language Filter"

  3. Install and enable (Artio) JoomSEF

Expected result

Page is displayed correctly

Actual result

I get this error:
Notice: Uninitialized string offset: 0 in ".../libraries/joomla/application/web.php"

System information (as much as possible)

Joomla! 3.7.5
PHP 5.6
MySql 5.7.19

Additional comments

30552447-40ef7608-9c9e-11e7-947b-278b53f4b864

avatar fluctuate fluctuate - open - 14 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Sep 2017
avatar fluctuate
fluctuate - comment - 14 Sep 2017

I propose this simple fix.

web.php, Line 520

NOW

// We just need the prefix since we have a path relative to the root.	
if ($url[0] == '/')
{
    $url = $prefix . $url;
}

AFTER

// We just need the prefix since we have a path relative to the root.
if( isset($url[0])  && ($url[0] == '/') )
{
	$url = $prefix . $url;
}
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Sep 2017
Category Libraries
avatar fluctuate
fluctuate - comment - 18 Sep 2017

Are you ok for a pull request ? (See code Above)

avatar fluctuate fluctuate - change - 18 Sep 2017
The description was changed
avatar fluctuate fluctuate - edited - 18 Sep 2017
avatar fluctuate fluctuate - change - 18 Sep 2017
The description was changed
avatar fluctuate fluctuate - edited - 18 Sep 2017
avatar ggppdk
ggppdk - comment - 18 Sep 2017

The fact that an error is thrown there
does not mean that the code has some bug
(unless you can prove that a valid usage of the API is made)

Possibly (Artio) JoomSEF is overriding JUri class or something similar

Try using latest version of the extension, if you are doing this already,

  • then report this issue to the author of the extension

Also possibly this notice can be safely ignored,
-- i say the above since the author of the extension has not made a fix for it
and since author claims extension is compatible with J3.7.5

so can try to set error_reporting in Joomla global configuration to "system default" (it is recommeded not to print notices/warnings/errors in live sites)

avatar fluctuate
fluctuate - comment - 18 Sep 2017

@ ggppdk

Thx, i've already reported the issue to the owner.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-19 05:11:53
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 19 Sep 2017
Closed_Date 2017-09-19 05:11:53 2017-09-19 05:11:54
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 19 Sep 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Sep 2017

closed as no Core-Issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17959.

Add a Comment

Login with GitHub to post a comment