- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- Fatal Error trying to "make skin based on my proper lay
1 bomani Nov 26, 2005 15:00
I'm trying to embed my blog within my HTML page based on the Manual's: How To instructions (Page: make a skin based on my proper layout).
[u]Problem: [/u]
I receive the following error when trying to display page in browser.
[u]Error: [/u]
Fatal error: Call to a member function on a non-object in /mnt/partition-dev-sdb3/home/baobabae/public_html/journal/skins/MySkin/_main.php on line 12
[u]Here's a snippet of the code error references:[/u]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<html>
<!-- #BeginTemplate "../../BaobabAesthetic%20v2.data/Templates/pageTab.html" -->
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title><?php
$Blog->disp('name', 'htmlhead');
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
arcdir_title( ' - ', 'htmlhead' );
last_comments_title( ' - ', 'htmlhead' );
stats_title( ' - ', 'htmlhead' );
?>
[u]Background: [/u]
I'm trying to display my blog within my own html webpage(background & navigation.
_main.php Folder - is located in the MySkin Folder
mystub.php - is located in the root folder of blog, same folder as a_stub.php
[u]Here's a link to the actual page with error: [/u]
http://www.baobabaesthetic.com/journal/skins/MySkin/_main.php
Any assistance would be greatly appreciated. . . i'm very new to PHP coding.
This works:
http://www.baobabaesthetic.com/journal/?skin=MySkin
You don't want to access the _main.php file directly. That's just part of the skin that gets included through index.php or a stub file. Your stub file gives some errors. Your problem might be there.