General Community > Global WebsiteBaker 2.8.x discussion
wblink does not work
(1/1)
noname8:
I'm in the stage of updating old baker site 2.8.1
to 2.8.3 SP5 (and then more)
but in this stage the [WBLINK223] does not work in the frontend.
They worked with the old version and i did not change template files. No error is produced
They work in the admin nicely
I have in the template, header section:
--- Code: ---<?php
if (function_exists('register_frontend_modfiles')) {
//register_frontend_modfiles('css');
//register_frontend_modfiles('jquery');
register_frontend_modfiles('js');
} ?>
--- End code ---
Just Before the body closing tag there is
--- Code: ---register_frontend_modfiles_body();
--- End code ---
i found preprocess -function from class.frontend.php and put die() in it. It is never called
noname8:
wow, found out fast. Old template didn't have buffer.
This fixed it
--- Code: ---<?php
ob_start();
page_content(1); ?> <!-- Content Block 2 - Header Content -->
...
$output = ob_get_contents();
ob_end_clean();
$wb->preprocess($output);
echo $output;
--- End code ---
dbs:
Hi, i think you have nothing to fix.
Do the needed upgrade steps from 2.8.1 to 2.8.3 and then upgrade. Don't check the website.
Make the next step, upgrade to 2.12.1.
Update your modules if it is possible. Now fix what is needed.
Navigation
[0] Message Index
Go to full version