Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal error: Call to undefined function  (Read 10359 times)

0 Members and 1 Guest are viewing this topic.

ida90

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Fatal error: Call to undefined function
« on: December 16, 2010, 12:48:38 am »

Hi! The last two days I haven't been able to access my gallery as I keep getting this error message: "Page not found. Fatal error: Call to undefined function php_e() in /home2/rhyswake/public_html/wp-content/themes/fresh orange/index.php on line 46."

Here's my index.php file:
Code:

Code: [Select]
<?php get_header(); ?>

<!-- Content/Updates -->
<div id="main">
<!--this is the loop-->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<div id="post">
<div id="posttop">
<div class="title"><?php the_title(); ?></div>
<!-- Post details -->
<div class="postdetails">
Posted by <?php the_author(); ?> in <?php the_category(', '); ?> on <?php the_time('F jS, Y'); ?> | <?php comments_popup_link('No Comments ''1 Comment ''% Comments '); ?>

<!-- Closing postdetails -->
</div>

<!-- Closing posttop -->
</div>

<div class="content">
<?php the_content('Continue reading&raquo;'); ?>

<!-- Closing content -->
</div>

<div class="contentbottom">
&nbsp; &nbsp;
<!-- Closing contentbottom -->
</div>

<!-- Closing post -->
</div>

<?php endwhile;?>
<center>
<?php wp_pagenavi(); ?>
</center>

<!-- Closing main -->
</div>
<br><br>


<?php else: ?>
<p><?php_e('Sorry, no posts matched your criteria.'); ?></p>

<?php endif; 
get_sidebar();
get_footer();
?>


<!--ends the loop-->


This is what happened:
I was thinking of upgrading my gallery to 1.5 and was going to do backups for the files. I just got my first mac and is still kind of green in few areas. So when trying to download the files from FileZilla FTP to my mac, instead of being saved as the normally would on my old computer, the files was reuploaded to the same albums. As some of the files was REALLY big the transfer was interrupted when I had to catch a flight home. And when I got I home, I didn't get the internet connection to work on my mac, so I have no way of finishing to transfers until over new years.. So I thought it would help to upgrade the gallery to 1.5 so that the files would be replaced, but I wasn't able to run the update files, so no luck there either...


And if there's nothing to do:
is it possible to install a new coppermine gallery from scratch (on a other url like for example: http://rhyswakefield.net/pictures) before I delete the old one from the ftp? So that I don't have save all the photos to my computer at the same time...


My gallery: http://rhyswakefield.net/gallery/



Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Fatal error: Call to undefined function
« Reply #1 on: December 16, 2010, 06:52:01 am »

What happens if you remove that line?
It looks more like something is wrong with the way you have combined your wordpress and Coppermine.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

ida90

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Fatal error: Call to undefined function
« Reply #2 on: December 16, 2010, 01:04:10 pm »

If I remove the line
<p><?php_e('Sorry, no posts matched your criteria.'); ?></p>, the right table just shows up blank and in the title of the site it says "Charming Rhys >> Page not found". So the error message disappeared, but not the problem!

I found someone who had the same problem on another site and they just made a blank space between <?php and _e like this:
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>. But when I did that I started to get a new message: "Page not found. Sorry, no posts matched your criteria."

Ah.... I feel like this gallery is screwed now :(

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Fatal error: Call to undefined function
« Reply #3 on: December 16, 2010, 01:37:31 pm »

I started to get a new message: "Page not found. Sorry, no posts matched your criteria."
That's expected behavior when you look at the code. I don't know what you've done to bridge your gallery with Wordpress. Please post the link where you found the Wordpress bridge.


Moving to bridge board.
Logged

ida90

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Fatal error: Call to undefined function
« Reply #4 on: December 16, 2010, 02:05:08 pm »

I've never made a bridge... The gallery used to be a fresh new page, not integrated in the wordpress. That's why I don't get why the error is showing up this way..
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Fatal error: Call to undefined function
« Reply #5 on: December 16, 2010, 02:11:36 pm »

Please try to install
a new coppermine gallery from scratch (on a other url like for example: http://rhyswakefield.net/pictures)
Logged

ida90

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Fatal error: Call to undefined function
« Reply #6 on: December 16, 2010, 03:32:17 pm »

I did that, and it works fine :) So I just think I'll just move all my files over with FTP.
Thanks so much for the help!
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.