Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Add new widget area - "fatal error"


  #1  
Old Sep 17, 2009, 03:41 AM
rosetrees
 
108 posts · Mar 2009
I'm trying to use the "add new widget area function". I'm using a new install of WP with no plug-ins yet. Atahualpa 3.4.1 and WP 2.8.4

I've tried starting with the minimum code (<?php bfa_widget_area('name=My new widget area'); ?>) and adding it into the Configure Header Area box, after %logo %image %pages. That gave a fatal area, so I tried adding the same code into Center Column area in the Above the Loop box. Same error.

This is the error I get "Fatal error: Call to undefined function: str_ireplace() in /home/username/public_html/username/wp-content/themes/atahualpa/functions.php on line 314"

Does anyone know what I'm doing wrong?

Thanks
Carol Smith

Last edited by rosetrees; Sep 17, 2009 at 06:35 AM. Reason: problem solved
  #2  
Old Sep 17, 2009, 06:08 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you are using PHP 4.x - str_ireplace() was added to PHP 5.x
Check with your host to see if they have an option to swap to php 5. I beleive at GoDaddy it's controled by a line in the .htaccess file
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 17, 2009, 06:33 AM
rosetrees
 
108 posts · Mar 2009
Thanks for your help juggledad. I'll contact my host - I remember seeing something about PHP4. If they can't help then I'll live without extra widget areas.
  #4  
Old Sep 17, 2009, 06:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can edit the code and replace the str_ireplace() with str_replace(), but you would be better upgrading to php5
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 17, 2009, 07:03 AM
rosetrees
 
108 posts · Mar 2009
Just looked in cpanel and it says I'm on PHP 5.2.9.

I was hoping I could just add the widget code without editing any of the index.php, header.php etc documents.

Last edited by rosetrees; Sep 17, 2009 at 07:06 AM.
  #6  
Old Sep 17, 2009, 07:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Make sure you are RUNNING php 5. Try adding the plugin 'wp-security scan' (http://semperfiwebdesign.com/plugins/wp-security-scan/) and it wil show you which version you are running. If you get the error you described, it's because you are runnining php4
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 18, 2009, 02:51 PM
rosetrees
 
108 posts · Mar 2009
You were right - of course It says I'm using 4.4.9. Will contact my host.

Thanks again for your help.

Carol

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Display certain "Widget Area" on post pages only ? 3ukman Sidebars & Widgets 1 Jul 15, 2009 03:08 PM
I have uploaded atahualpa to my server but am getting "fatal error". Dianne Atahualpa 3 Wordpress theme 5 Apr 11, 2009 03:06 PM
Putting "Link Categories" in the header area kirinafa Header configuration & styling 1 Mar 9, 2009 09:57 AM
"Fatal error: .../atahualpa/header.php on line 848" ??? Dem Header configuration & styling 5 Feb 19, 2009 06:06 AM
"Catchable fatal error" ... please try this file Flynn Atahualpa 3 Wordpress theme 5 Dec 18, 2008 03:25 AM


All times are GMT -6. The time now is 05:26 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.