Dragonfly CMS v9 ⇒ Themes v9 ⇒ [solved] PH2 themes error ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexThemes v9

[solved] PH2 themes error Reply to topic


Hi,

I think this is probably incompatibility issue with PH2 as it is an older theme and I'm using Cms 9.3.3.

I get this error when using the theme:
Fatal error: Call to undefined function blocks_visible() in /home/titansse/public_html/themes/PH2/theme.php on line 57

Does anyone here know how to update this theme so it work with 9.3.3? Any advice is greatly appreciated. Thank you.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


It's very clearly labelled for 9.1.2.1 - changes required for DF 9.2.1+ as below.

dragonflycms.org/Wiki/...28/#themes

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


I see. Thanks. Smile I will try that.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


I don't understand what this means. Can you explain?

# themes/Your_Theme/template/header.html, footer.html and blocks.html add minus/plus image file extension like
src="{leftblock.S_IMAGE}.gif"

Do you mean to add a -/+ to file extension? Sad

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


I made the changes require but now the site is giving me a blank page. Not sure what I did wrong. I attached a file.
Attachment: theme.txt
Description
Filename theme.txt
Filesize 8.30 KiB
Downloaded 7 Time(s)
You are not allowed to view/download this attachment
Attachment: original_ph2_theme.txt
Description
Filename original_ph2_theme.txt
Filesize 8.23 KiB
Downloaded 9 Time(s)
You are not allowed to view/download this attachment

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


dragonflycms.org/Wiki/id=58.html

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


What did I do wrong?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


4.L

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


URL noted - thanks.

Sorry but I'm not running through code - best to simply compare with the default theme.

It shouldn't show a blank page when you're logged as admin.

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Try to open /includes/config.php, set CPG_DEBUG to true, it should get your theme to to work again.

If it works, it will also visualize you all issues.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


I solved the problem. Thanks. It's a simple syntax error, I missed a bracket.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


One more thing. As has been warned from the docs

/*
Make sure themes/Your_Theme/template/block.html works properly since it will be now finally used by $Block->preview() in admin -> blocks and wherever a developer wants to preview of a block.
*/

My block page in admin->blocks is now all screw up and I'm not sure how to fix this as I don't see an instruction on this, or maybe I haven't found one yet. Is there a solution for it?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


Here is what my blocks currently look like :-).
Attachment: blocks.jpg
Description
Filesize 134.74 KiB
Viewed 7 Time(s)
You are not allowed to view/download this attachment

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3


The template block file relate to the "block preview" only.

Does /theme/PH2/admin/blocks.html (and blocks_edit) exists?
If so rename it to something else, clear the cache and default blocks administration should kick in.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Yea it exists, I did what you said and it work. So the way Dragonfly CMS work is if the template is not found it will use the default theme, but everything else stay with current theme, is that right?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CentOS/2.2.22/4.1.22/5.2.9/9.3.3

All times are UTC


Jump to: