error in default php
error in default php
1 year 3 months ago
I have checked the Joomla 4 error reporting and get an error
I have attached the zipped file. What should it be?Undefined variable $target in /home/public/sites/www.aldfaerforum.nl/components/com_kunena/template/nts_kbee/layouts/bbcode/url/default.php on line 32
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
Make an override of the file and change lines 20-22 to this:
Code:
// Display URL
$rel = '';
$target = '';
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
How do you make an override for NTS Kbee? Can not find it in the documentation.
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
Like you make a override for any other extension. In your Joomla template folder you have a subfolder html. If not exists create a folder com_kunena. In this folder create a folder layouts. In layouts create a folder bbcode, in this folder create a folder url. Place your changed default.php in the folder url.
So in fact it's almost the same structure as in your KBee folder
becomes for your override:
So in fact it's almost the same structure as in your KBee folder
Code:
components/com_kunena/template/nts_kbee/layouts/bbcode/url
Code:
your_template/com_kunena/layouts/bbcode/url/default.php
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
I have made the complete path by FTP, which I found easier to do. The changed default is now causing another error in the Joomla error listing
Undefined variable $end_tag_params in /home/public/sites/www.aldfaerforum.nl/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Undefined variable $end_tag_params in /home/public/sites/www.aldfaerforum.nl/libraries/kunena/External/Nbbc/src/BBCode.php on line 2321
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
Are you sure you have the correct path for your override? Is there a mistake in the syntax of default.php?
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
The override you gave stopped the error message which occurred frequently. So path etc must be correct. The override is attached.
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
OK. This template is even crappier than I thought.
Solution:
replace
with
Really nice that developers haven't checked this forum for weeks
Solution:
replace
Code:
// Display URL
$rel = '';
$target = '';
} else {
$rel = '';
}
?>
Code:
// Display URL.
$rel = '';
$target = '';
if (!$this->internal) {
$rel = 'rel="nofollow noopener noreferrer"';
$target = ' target="' . $this->escape($this->target) . '"';
}
?>
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
Hi Han,
We updated new code to the download package. You can download the template and update to your website.
Kind regards,
We updated new code to the download package. You can download the template and update to your website.
Kind regards,
Hung Pham
Email: 9themestore@gmail.com
Twitter: @9themestore
Email: 9themestore@gmail.com
Twitter: @9themestore
Please Log in or Create an account to join the conversation.
Re: error in default php
1 year 3 months ago
I have not seen the error in my error list for the last 4 hours. So I think this is the correct code. Thank you Pinkeltje.
Please Log in or Create an account to join the conversation.
Time to create page: 0.399 seconds