A module has the following line:
$fullnoimage = Jstring::substr_replace($fullnoimage, '', $ini, $fin - $ini + 1);
It should just return the expected string replacement.
Fatal error: Class 'Jstring' not found in .../default_parse.php on line 46
Joomla 3.3.6 updated to 3.4
AFAIK the way the call is being made is correct, does it need to be done differently on Joomla 3.4?
That works. Is there a reason why this was case insensitive before and now it is not?
in global PHP class and methods is case insensitive,
in Joomla, class autoloader is case sensitive.
In your case it worked before because JString
was loaded already somewhere else
With some refactoring between 3.3.6 and 3.4.0, JString went from a class that was loaded very early in the stack to being a class that can optionally not be used at all in a request cycle. For many autoloaders, the first use of a class is going to be the most sensitive to cases. So for consistency, it's best to always use the case as it's declared by the class.
Thanks a lot for the help!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-25 18:20:42 |
Labels |
Added:
?
|
||
Build | 3.4 | ⇒ | staging |
This help really worked for me. Thank you very much for posting.
try
JString