Template Club Package Silver Pacakage Gold Pacakage Developer Pacakage Accepted Payments Member Login
TemplatePlazza Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Post a new message in "Xtypo"
Name:
Subject:
topic icon:
no
Boardcode:
 Colour:  Size:   Close all tags
Message:

Emoticons
B) :( :) :laugh:
:cheer: ;) :P :angry:
:unsure: :ohmy: :huh: :dry:
:lol: :silly: :blink: :blush:
:kiss: :woohoo: :side: :S
More Smilies
 Enter code here   

Topic History of: Solution for images problem on Joomla1.5.7 + SEF
Max. showing the last posts - (Last post first)
Author Message
noob If you go into admin panel of joomla and GLobal Configuration>Server tab, there you have option to turn Error reporting to maximum, and you also should see the errors on frontpage.
Or log into your hosting panel and find error log.
webbuilders im new in joomla .. Can i ask from where can i retrive those errors ...??
thanks!!
Philip Roy Hi there,

I tried the fix on the first page and had success, but then noticed that my server log files sky rocketed in size (over 400 Mb!). On checking, they were filled with errors related to "basefix".

I've just applied the new changes as described above. Xtypo is certainly working, but on switching on "php_flag display_errors on" in an htaccess file to do some checking, I'm still getting a huge number of errors. Examples of them include....

Code:

Notice: Undefined variable: baseprefix in /var/www/html/nziphone.com/plugins/content/xtypo.php on line 206 Notice: Undefined variable: baseprefix in /var/www/html/nziphone.com/plugins/content/xtypo.php on line 208 Notice: Undefined variable: baseprefix in /var/www/html/nziphone.com/plugins/content/xtypo.php on line 211 Notice: Undefined variable: baseprefix in /var/www/html/nziphone.com/plugins/content/xtypo.php on line 215 Notice: Undefined variable: baseprefix in /var/www/html/nziphone.com/plugins/content/xtypo.php on line 219
I'm confused given that the first set of code above appears to define baseprefix? Cheers, Phil
Kristian Correction to my first posting:

There was a little misspelling of $baseprefix in the original instruction. Thanks Roblom for finding this issue.
The replacement string should of course be:
Code:

url(" . $baseprefix . "plugins/
as $basefix is an undefined string and the whole code is meaningless when its result is not used... I've also found another issue with warnings displayed at the top of the content after SEF has been turned off. It seems the document.base then returns an empty string. Here is a revised code that you should use instead:
Code:

/* Begin path correction fix */ // Get document base and count number of slashes $tmp =& JFactory::getDocument(); $base = $tmp->getBase(); $i = substr_count($base, '/'); // Now get application base and subtract the number of slashes in it // from the number of document base slashes $tmp =& JFactory::getApplication(); $base = $tmp->getBasePath(); $i = $i - substr_count($base, '/'); if ($i > 0) { // Prepare baseprefix of required number of '../' entries to be used in images url $baseprefix = str_repeat('../',$i); }
Place this right after the lines:
Code:

// Get Plugin info $plugin =& JPluginHelper::getPlugin('content','xtypo'); $param = new JParameter( $plugin->params );
in the beginning of xtypo.php file located in your joomla /plugins/content/ directory. And also replaced ALL occurences of
Code:

url(plugins/
in xtypo.php file with
Code:

url(" . $baseprefix . "plugins/
(91 occurences in total) Roblom, could you please try this out and report back if this works for you too. Because the solution you found just adds an extra / in front of the original url ($basefix being an empty string) and probably does not work when you use the option of embedding sections and categories into SEF urls.
rwin_schro Thx again Roblom
Roblom Figured it out already.

Code:

url(".$basefix."plugins/
Needs to be
Code:

url(".$basefix."/plugins/
Powered by FireBoardget the latest posts directly to your desktop
ico spot
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad
  • icoad