• Alright, I’ve searched everywhere and finally decided to post and ask this question. I’ve had my site skinned using b2 for over a year now, and I just made the switch to wordpress. Now after much frustration I got everything imported and running happily. Even styled and skinned the same way it was before, but now I have a problem.
    I’m using a three column layout, one side being navigation for the site and what have you, the other being the WP calendar, archives, everything like that. Now my problem is when I try to access one of my content pages I get an error. That error being:
    Fatal error: Call to undefined function: _e() in /home2/angela/public_html/side2.php on line 3
    I know it has something to do with the includes for the calendar and what not as line 3 has this on it:
    <?php _e(''); ?>
    Is there anyway I can set up the drop down menu’s and everything with direct paths or includes as thats how I got my b2 calendar to show up at all times on my site.
    Thanks in advance for any help!

Viewing 15 replies - 1 through 15 (of 24 total)
  • Function _e() is part of the localization of WordPress. What version of WP are you using?
    Perhaps a few of the PHP gurus will be along soon to help you out in more specific detail.

    Thread Starter Angie Bergmann

    (@radkitten)

    I’m using the latest version. I know the error is occuring because all of my content is in subdirectories of the root and that is where I have WP installed.
    I’m seriously considering just taking the plunge and converting my site to rely on WP for content management as well as general daily blogging. I was planning on a site clear-out, redesign, and reorganization with this switch from b2 anyhow lol.

    Thread Starter Angie Bergmann

    (@radkitten)

    *bump*
    So no one knows of anyway to get the calendar and stuff work on subdirectory pages when in a column on the side?

    If you want to run files that contain calls to WP functions you have to include wp-blog-header

    Thread Starter Angie Bergmann

    (@radkitten)

    I tried doing that by including it in my header file originally and it gives me this error:
    Warning: Cannot modify header information – headers already sent by (output started at
    /home2/angela/public_html/index.php:2) in /home2/angela/public_html/cookiecheck.php on line 15
    Warning: Cannot modify header information – headers already sent by (output started at /home2/angela/public_html/index.php:2) in /home2/angela/public_html/cookiecheck.php on line 16
    Warning: Cannot modify header information – headers already sent by (output started at /home2/angela/public_html/index.php:2) in /home2/angela/
    And if I try to use the absolute path it just gives me even more errors.

    Is cookiecheck an included file? I assume it does not actually have any header info. The headers already sent message usually means there is whitespace before the opening <?php and/or after the closing ?>. Just make sure there are no spaces or carriage returns in those places.

    Thread Starter Angie Bergmann

    (@radkitten)

    Alright, I got rid of the header output error on the index page, but now I have this error anytime I try to view a content page:
    Warning: main(./wp-blog-header.php): failed to open stream: No such file or directory in /home2/angela/public_html/nav/header1.php on line 3
    Fatal error: main(): Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home2/angela/public_html/nav/header1.php on line 3
    When I tried using the absolute path it gave me the same errors.
    Example with absolute path: https://radkitten.nu/angela/

    What absolute path are you using? I run WP out of /wordpress so any files in the main directory in which I include the blog-header have to have:
    require(‘wordpress\wp-blog-header.php’);

    Thread Starter Angie Bergmann

    (@radkitten)

    Woo! Thank you so much! I got it working with this:
    ‘<?php
    /* Don’t remove this line. */
    require(‘../wp-blog-header.php’);
    ?>’
    Thank you so much <3. I was starting to feel so dumb lol.

    Thread Starter Angie Bergmann

    (@radkitten)

    I was trying to use the full absolute path as:
    /home2/angela/public_html/wp-blog-header.php
    I saw another post about just adding 1 period to the beginning and figured it was worth a shot to try and it worked ??

    Thread Starter Angie Bergmann

    (@radkitten)

    Alright, I thought it was solved to quickly *bangs head on desk*. Content pages show up great, now the index doesn’t. I get this error:
    Warning: main(../wp-blog-header.php): failed to open stream: No such file or directory in /home2/angela/public_html/nav/header1.php on line 3
    Fatal error: main(): Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home2/angela/public_html/nav/header1.php on line 3
    BTW, I have WP installed to my root directory.

    Right now I am trying to find something that does not work on your page…

    Thread Starter Angie Bergmann

    (@radkitten)

    This page: https://radkitten.nu/angela/
    What I’m thinking I might have to do is go through and add the WP call lines to the top of every page. But thats my last resort as thats alot of pages lol.

    Thread Starter Angie Bergmann

    (@radkitten)

    Thats what I figured. Ah well, thats what redesigning and upgrading is for right lol :). Thank you anyhow :).

    Okay I’m going to revive the “Skinning” topic. The first thing I should tell you is that I am a neophyte in php. I tend to use Fireworks, dreamweaver and Flash to create sites. And I am just dipping my toe into dynamic web sites using php.
    That said, I am looking for a blogging software to integrate into a site I am developing. I would like to keep the header and footer as they are and just have the news content in the center. (The header has graphics and Flash and some javascript See. https://host210.ipowerweb.com/~almckayc/news.html for an example.)
    I’ve looked at three blogging packages and all have features I want, but none has an easy way to implement the others’.
    My isp provides an install of bb and I looked into that for a while, but then I went on the search for something better. I came across WordPress and like the php pages it generates, ( https://host210.ipowerweb.com/~almckayc/wordpress/ ) but had NO luck putting the header above the php content. ( https://host210.ipowerweb.com/~almckayc/wordpress/test/page1.php )
    I then looked into Blosxom and was able to get my HTML content to ride over the NEWS, but from an end-user’s point of view, WP seems like an easier way to post news stories.
    SO… my question is, can one easily refer to an HTML header in WordPress? Most of the examples I have seen tell me “no”. But if someone can point me in the right direction I would be very grateful.
    Cheers!

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Skinning’ is closed to new replies.