forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: ida90 on December 16, 2010, 12:48:38 am

Title: Fatal error: Call to undefined function
Post by: ida90 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/



Title: Re: Fatal error: Call to undefined function
Post by: Jeff Bailey 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.
Title: Re: Fatal error: Call to undefined function
Post by: ida90 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 :(

Title: Re: Fatal error: Call to undefined function
Post by: Αndré 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.
Title: Re: Fatal error: Call to undefined function
Post by: ida90 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..
Title: Re: Fatal error: Call to undefined function
Post by: Αndré 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)
Title: Re: Fatal error: Call to undefined function
Post by: ida90 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!