Tutorial

I have noticed several threads regarding upgrading to Dolphin 7.0.8 and Forum errors. If you are having problems after upgrading and when visiting your forum you see something like this:

Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: runtime error: file /home/your-account-name/public_html/modules/boonex/forum/layout/base_en/xsl/recent_topics.xsl line 14 element call-template in /home/your-account-name/public_html/modules/boonex/forum/classes/en/BxXslTransform.php on line 88

Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: The called template 'box' was not found. in /home/your-account-name/public_html/modules/boonex/forum/classes/en/BxXslTransform.php on line 88

It is because Boonex made some changes to the forum and you will need to upgrade your /modules/forum/layout/ directory to make your Dolphin template work with this latest 7.0.8 version. Basically they added some new files to the forum template that the previous versions did not have.

Boonex actually states on the upgrade page:
Upgrade Instructions from 7.0.7 to 7.0.8

NOTE: Forum template was restructured, so if you have custom template, then you maybe need to ask for update from the template author.

Although this is a fairly easy fix, it is too bad they don't put this at the top of the upgrade instructions instead of where it is at the bottom after Step 6.

Even though the Note is in bold it is still fairly easy to miss. They should probably make the text larger. The entire line bold, or put a warning in red or something to draw more attention.


For those of you in a hurry:
Goto /modules/boonex/forum/layout.
Rename your current forum template name like (/modules/boonex/forum/layout/blk-backup and /modules/boonex/forum/layout/blk_en-backup)
Copy the contents of the uni folder to a new folder and name it the same thing as your template folder name. (example: /modules/boonex/forum/layout/blk)

Note:

Be sure you use the right name or it won't work.



Open /modules/forum/layout/tmpl_blk/params.php and change uni to your template name.

$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'uni/xsl/';    // xsl dir

$gConf['url']['css'] = $gConf['url']['layouts'] . 'uni/css/';    // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'uni/xsl/';    // xsl url

Recompile the forum language file in your Dolphin admin panel -> Modules -> Orca Forum -> Manage Forum -> Compile Lang: en

Once you are confident you have it working you can remove the folders/directories you renamed to backup.


Alex T from Boonex posted this in the Boonex Forums about what you need to do to fix this problem. You can find the post here (Look for Part 2 in the post):
Upgrade problems from 7.0.7 to 7.0.8

Here is what he stated in the forum post that need to be done to fix this:

2. As we already said before forum template structure was changed and you need to ask template's author for the update.

If you are the creator of the template or you feel you can do it by yourself you can follow these steps on how to update the template:

a) delete the following folders manually via FTP and or SSH:

modules/boonex/forum/layout/base_XX
modules/boonex/forum/layout/TMPL_XX
modules/boonex/forum/classes/XX
modules/boonex/forum/js/XX

where:

XX is language code, for example js/en
TMPL is template name, for example layout/uni_en

b) Copy all XSL files from layout/uni/ folder to layout/templatename/ (where templatename is your forum template folder).

You will need to make changes in forum template again if needed.

But now you can have more control since the following XSL template files were added:

attachments.xsl
avatar.xsl
box.xsl
paginate.xsl
signature.xsl

For example, now you can change box.xsl if you changed designbox_1.html template.

Note:
I think he forgot to mention you also need to open /modules/boonex/forum/layout/TMPL_XX/params.php and change uni to the name of your template before you can recompile:

$gConf['dir']['xsl'] = $gConf['dir']['layouts'] . 'uni/xsl/';    // xsl dir

$gConf['url']['css'] = $gConf['url']['layouts'] . 'uni/css/';    // css url
$gConf['url']['xsl'] = $gConf['url']['layouts'] . 'uni/xsl/';    // xsl url

c) recompile forum language file form Dolphin admin panel -> Modules -> Orca Forum -> Manage Forum -> Compile Lang: XX

(where XX is language code). If you have several templates, you will need to switch to every template and click compile language.


Overall this is fairly simple and only takes a few moments. You are basically just copying the contents of the /modules/boonex/forum/layout/uni folder/directory to the one you are currently using which contains the missing files Boonex added in this new Dolphin 7.0.8 version and recompiling.

The missing or new files are:
/modules/boonex/forum/layout/tmpl_XX/xsl/attachments.xsl
/modules/boonex/forum/layout/tmpl_XX/xsl/avatar.xsl
/modules/boonex/forum/layout/tmpl_XX/xsl/box.xsl
/modules/boonex/forum/layout/tmpl_XX/xsl/paginate.xsl
/modules/boonex/forum/layout/tmpl_XX/xsl/signature.xsl

Your Dolphin upgraded version can't find those files so you get the error.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend
Sponsored Links