Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Maintenance Page - Fatal Error

Asked Modified Viewed 3,948 times
G
GWAVE
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

When on the maintenance page (www.example.com/maintenance.php) I am getting the following error:

Fatal error: Call to undefined function add_to_head() in /home/*****/public_html/*****/themes/v1/theme.php on line 8


I had a look at line 8-10 of theme.php and the code there is:

add_to_head("<link rel='stylesheet' href='".THEME."grid.css' type='text/css' media='screen' />");
add_to_head("<link rel='stylesheet' href='".THEME."reset.css' type='text/css' media='screen' />");
add_to_head("<link rel='stylesheet' href='".THEME."style.css' type='text/css' media='screen' />");


Anybody know how I can fix this?
0 replies

8 posts

H
honeyy
H
honeyy 10
  • Junior Member, joined since
  • Contributed 40 posts on the community forums.
  • Started 11 threads in the forums
answered
Junior Member

Which theme are you using? Is it Eshop?
0 replies
G
GWAVE
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

No it's called GamesWorld.
0 replies
H
honeyy
H
honeyy 10
  • Junior Member, joined since
  • Contributed 40 posts on the community forums.
  • Started 11 threads in the forums
answered
Junior Member

Ok so i guess its not only me who have the same issue then. I thought it might have been theme related, but it seems its abit bigger than that. I guess the only fix to this is to find the functions.php in any of the theme and try to add the function to maincore.php.
0 replies
G
GWAVE
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

Quote

honeyy wrote:

Ok so i guess its not only me who have the same issue then. I thought it might have been theme related, but it seems its abit bigger than that. I guess the only fix to this is to find the functions.php in any of the theme and try to add the function to maincore.php.


Yea because it was fine with default themes.

Hopefully some PF staff can help solve the issue :(
0 replies
T
Talocha
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

have an answer as I see error due to a is missing code fragment

If this error appears only in its theme
maybe it is not compatible with your version

upload zip theme
directed order to watch download
B)
0 replies
G
GWAVE
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

The theme says it is compatible with this version. Is there some code I can add to fix it?
0 replies
J
JoiNNN
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
answered
Veteran Member

Move the lines after/below this line inside theme.php

function render_page($license=false) {

or wrap the lines with this code
if (function_exists("add_to_head")) {
   add_to_head("<link rel='stylesheet' href='".THEME."grid.css' type='text/css' media='screen' />");
   add_to_head("<link rel='stylesheet' href='".THEME."reset.css' type='text/css' media='screen' />");
   add_to_head("<link rel='stylesheet' href='".THEME."style.css' type='text/css' media='screen' />");
}
0 replies
G
GWAVE
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Junior Member

What a legend you are JoiNNN!

I moved the lines after/below that code and it now works perfectly. Thank you :)
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

H
H
honeyy 10
  • Junior Member, joined since
  • Contributed 40 posts on the community forums.
  • Started 11 threads in the forums
J
J
JoiNNN 10
  • Veteran Member, joined since
  • Contributed 850 posts on the community forums.
  • Started 100 threads in the forums
T
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums
G
G
GWAVE 10
  • Junior Member, joined since
  • Contributed 15 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet