Clicky

I am getting the following error when I try to go to my drupal 7 site:

Fatal error: Call to undefined function get_artx_drupal_view() in /home/cathol7/public_html/christchild4/themes/christchild/page.tpl.php on line 3

The site is www.catholic-life.net/christchild4.  The error started appearing when I was having trouble with my theme that I created with Artisteer.  I made a few minor changes to the theme, uploaded the theme, and now I get the error.

I reinstalled Drupal 7 as a separate install, and installed the same template, it worked just fine, except the modules I installed and the content items are not there. You can see that at www.catholic-life.net/christchild5.

Any ideas?  I have tried to delete the themes and replace them.  That did not work, at all.

asked 09/02/2011 12:16

mstoolmi's gravatar image

mstoolmi ♦♦


7 Answers:
Hello mstoolmi,
At this point I can tell you that PHP is telling you where the issue is.

In your "christchild" theme, check out line 3 in page.tpl.php. What functions are being called on that line? get_artx_drupal_view()? Is there a get_artx_drupal_view() in your theme's template.php file? My guess is "no" because the error is saying that the function is undefined. Maybe you can remove that function call from line 3 or define it in template.php (maybe it's there but mispelled?).

Let me know if that helps inspire something. :)

Best regards,

Chris
link
Ultrus's gravatar image

Ultrus

I am not exactly sure what happened.  I tried to follow the code, but didn't get anywhere fast.  Finally tracked a few database errors.  I partially fixed it by changing the database, enough to get the page to display.  Then added the theme I created with a different name.  

That seemed to get me back on track.

Sincee no one else responded, I guess I give you the points?
link
mstoolmi's gravatar image

mstoolmi

hrrrmm. You could give me points if desired. I really want to help solve the underlying issue though if you are still digging.

Further tip:
Try clearing your cache at site performance page (maybe it's holding on to something from local?). You can also empty all tables that start with cache* and the cache table itself manually.

Let me know if that helps more.
link
Ultrus's gravatar image

Ultrus

Also make sure to change your file location under file settings (may not help exact issue, but is something I forget to do on occasion), and set you sites/default/files permissions as appropriate.
link
Ultrus's gravatar image

Ultrus

Clearing the cache was a good idea, but I don't think that was the problem.

I am not sure how I did this, but I got the same template in there with two different directories, and it was pulling pieces from each of the two folders.  And some elements from neither folder.  It was very bizarre.  I tracked down some of the mysql entries, but apparently could not find them all.  Once I installed the theme with a totally new name from scratch, and then went into the themes and selected the totally new name, everything started working correctly.
link
mstoolmi's gravatar image

mstoolmi

aahhhhh. Yes that's unusual (odd drag-and-drop action with FTP app?). I'm glad you figured out what was up.

Best regards,

Chris
link
Ultrus's gravatar image

Ultrus

Not sure there was really a great solution here.  I appreciate Chris' assistance.
link
mstoolmi's gravatar image

mstoolmi

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×1
×3
×5
×104

Asked: 09/02/2011 12:16

Seen: 2443 times

Last updated: 09/16/2011 05:04