This code... how to fix?

by Tropical - 12-04-2015, 02:17 AM
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#1
OP
Posted: 12-04-2015, 02:17 AM
On my new site, there is an error in the code and it says "Call to undefined function 'get_option() in 'index.php' on line 3"

I am using this HTML theme called "Dante"


Here is the code where that error is:

PHP Code:
<?php 

    $options 
get_option('sf_dante_options');
    
$page_layout $options['page_layout'];
    
$default_page_heading_bg_alt $options['default_page_heading_bg_alt'];
    
$sidebar_config $options['archive_sidebar_config'];
    
$left_sidebar $options['archive_sidebar_left'];
    
$right_sidebar $options['archive_sidebar_right'];
    
$blog_type $options['archive_display_type']; 
What is the right code/fix? 
Closed Account
Posts:
2,770
Joined:
Jan 2015
Likes:
140
Credits:
1,402
Reputation:
26
2 Years of Service
#2
Posted: 12-04-2015, 02:25 AM
isn't it obvious?


get_options doesn't exist.

I don't know the code or anything so I can't really help you but yeah
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#3
OP
Posted: 12-04-2015, 02:28 AM
@Hug

I know that lmao
What should I try, to try and fix? :noh:
The Mandingo Man
Posts:
901
Joined:
Jan 2015
Likes:
132
Credits:
2,037
Reputation:
120
Sys Admin
2 Years of Service
#4
Posted: 12-04-2015, 02:31 AM
I believe this is a Wordpress theme, you should look into that.
[Image: jqsoo2y.png]
Closed Account
Posts:
1,383
Joined:
Jan 2015
Likes:
124
Credits:
1,308
Reputation:
30
2 Years of Service
#5
Posted: 12-04-2015, 02:33 AM
Wait, if it's a HTML template why the fuck does it has PHP?
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#6
OP
Posted: 12-04-2015, 02:40 AM
@Pulseeey @AndresXZ09

It's this theme, is it a WordPress theme?
http://nulledbb.com/Thread-Themeforest-D...pose-Theme
The Mandingo Man
Posts:
901
Joined:
Jan 2015
Likes:
132
Credits:
2,037
Reputation:
120
Sys Admin
2 Years of Service
#7
Posted: 12-04-2015, 02:42 AM
(12-04-2015, 02:40 AM)Tropical Wrote: @Pulseeey @AndresXZ09

It's this theme, is it a WordPress theme?
http://nulledbb.com/Thread-Themeforest-D...pose-Theme

Yes it is.
[Image: jqsoo2y.png]
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#8
OP
Posted: 12-04-2015, 02:44 AM
@Pulseeey

I would delete al the file contents, and install WP, and install this theme?
The Mandingo Man
Posts:
901
Joined:
Jan 2015
Likes:
132
Credits:
2,037
Reputation:
120
Sys Admin
2 Years of Service
#9
Posted: 12-04-2015, 02:45 AM
(12-04-2015, 02:44 AM)Tropical Wrote: @Pulseeey

I would delete al the file contents, and install WP, and install this theme?

Yes, you need to install Wordpress to use this.
[Image: jqsoo2y.png]
Fulltime Member
Posts:
1,127
Joined:
Apr 2015
Likes:
51
Credits:
132
Reputation:
37
2 Years of Service
#10
OP
Posted: 12-04-2015, 02:46 AM
@Pulseeey
Alright, thank you :noh:

I am gonna install it, now :noh:
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)