Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Urgent - site down

  1. #1
    Thread Starter
    Junior Member precocerto's Avatar
    Join Date
    Jul 2011
    Location
    Portugal, Cascais
    Posts
    41
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Urgent - site down

    I was modifying my theme-footer.php file when i saw this error:


    Parse error: syntax error, unexpected '}' in /home/anuncios/public_html/wp-content/themes/classipress-314/includes/theme-footer.php on line 74

    I already put the original code file theme-footer.php but still have the same error.

    MY SITE IS DOWN - www.anunciosgratisonline.net

    Can some one help me please ?

  2. #2
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    attach both files...the one you wanted and the original theme-footer.php

    I don't see the same error now but you are using w3 total cache

    you would have to clear out the site cache first to see what effect a file change has

  3. #3
    Thread Starter
    Junior Member precocerto's Avatar
    Join Date
    Jul 2011
    Location
    Portugal, Cascais
    Posts
    41
    Thanks
    11
    Thanked 0 Times in 0 Posts
    Just want the original file.

    The original code is: i already send the original file theme-footer.php via ftp and can't access the wp-admin anymore.

    It give the error...

    <?php

    /**
    * Add footer elements via the wp_footer hook
    *
    * Anything you add to this file will be dynamically
    * inserted in the footer of your theme
    *
    * @since 3.0.0
    * @uses cp_footer_actions
    *
    */


    /**
    * add the footer contents to the bottom of the page
    * @since 3.1
    */
    function cp_do_footer() {
    ?>

    <div class="footer">

    <div class="footer_menu">

    <div class="footer_menu_res">

    <ul>
    <li class="first"><a href="<?php echo get_option('home')?>"><?php _e('Home','appthemes'); ?></a></li>
    <?php wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&exclude= '.get_option('cp_excluded_pages') ); ?>
    </ul>

    <div class="clr"></div>

    </div><!-- /footer_menu_res -->

    </div><!-- /footer_menu -->

    <div class="footer_main">

    <div class="footer_main_res">

    <div class="dotted">

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar_footer') ) : else : ?> <!-- no dynamic sidebar so don't do anything --> <?php endif; ?>

    <div class="clr"></div>

    </div><!-- /dotted -->

    <p>&copy; <?php echo date_i18n('Y'); ?> <?php bloginfo('name'); ?>. <?php _e('All Rights Reserved.', 'appthemes'); ?></p>

    <?php if ( get_option('cp_twitter_username') ) : ?>
    <a href="http://twitter.com/<?php echo get_option('cp_twitter_username'); ?>" target="_blank"><img src="<?php bloginfo('template_url'); ?>/images/twitter_bot.gif" width="42" height="50" alt="Twitter" class="twit" /></a>
    <?php endif; ?>

    <div class="right">
    <p><a target="_blank" href="http://www.appthemes.com/themes/classipress/" title="Classified Ads Software"><?php _e('Classified Ads Software','appthemes'); ?></a> | <?php _e('Powered by','appthemes'); ?> <a target="_blank" href="http://wordpress.org/" title="WordPress">WordPress</a></p>
    </div>

    <div class="clr"></div>

    </div><!-- /footer_main_res -->

    </div><!-- /footer_main -->

    </div><!-- /footer -->

    <?php
    }
    add_action('appthemes_footer', 'cp_do_footer');


    // insert the google analytics tracking code in the footer
    function cp_google_analytics_code() {

    // echo "\n\n" . '<!-- start wp_footer -->' . "\n\n";

    if ( get_option('cp_google_analytics') <> '' )
    echo stripslashes( get_option('cp_google_analytics') );
    ?>
    <script type="text/javascript" >
    var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
    </script>
    <?php

    // echo "\n\n" . '<!-- end wp_footer -->' . "\n\n";

    }
    add_action('wp_footer', 'cp_google_analytics_code');


    // enable the gravatar hovercards in footer
    function cp_gravatar_hovercards() {
    global $app_abbr;

    if ( get_option($app_abbr.'_use_hovercards') == 'yes' )
    wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), '1.0', true );

    }

    add_action('wp_enqueue_scripts', 'cp_gravatar_hovercards');


    ?>

  4. #4
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    so, is this the code that gave the error?

    I do see your site, by the way.

  5. #5
    Thread Starter
    Junior Member precocerto's Avatar
    Join Date
    Jul 2011
    Location
    Portugal, Cascais
    Posts
    41
    Thanks
    11
    Thanked 0 Times in 0 Posts
    If you put the link: www.anunciosgratisonline.net/wp-admin ?

    and try to see it with firefox. please.

    with ie i cant see the site too, but can't access admin area !!!

  6. #6
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    yes, I see...you have two different theme-footers.php

    the bad boy is in the admin area


    Can you go into your HOSTING panel and use the FTP there or use the File Manager to copy over the "good" theme-footer.php into the includes/ folder?

  7. #7
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts

    fix with ftp

    Using FTP should get you out of this fix.

    It looks like you did not put the original "functioning" theme-footer.php into the correct folder.

    Make sure it is overwriting the theme-footer.php in the Classipress/includes/ folder.

  8. #8
    Thread Starter
    Junior Member precocerto's Avatar
    Join Date
    Jul 2011
    Location
    Portugal, Cascais
    Posts
    41
    Thanks
    11
    Thanked 0 Times in 0 Posts
    i already sent the original file via ftp.

    I have the same error...

    I have installed the w3c total cache.

    Do i have to wait nay time ?!

  9. #9
    Veteran vienna's Avatar
    Join Date
    May 2010
    Location
    Vienna, Austria
    Posts
    718
    Thanks
    19
    Thanked 177 Times in 118 Posts
    when you say you "already sent" do you mean the first time that you have already referred to?

    Or do you mean you just tried this AGAIN since we started our discussion?

  10. #10
    Thread Starter
    Junior Member precocerto's Avatar
    Join Date
    Jul 2011
    Location
    Portugal, Cascais
    Posts
    41
    Thanks
    11
    Thanked 0 Times in 0 Posts
    i just tried it again, but i not sure...

    It says it over written, but the size of the file is diferrent ...

    I can send u the passwords.

    Can u fix that for me ?

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. URGENT: Users cant register on my site
    By ssmedia in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: June 14th, 2011, 02:02 PM
  2. Another Bug CP 3.0.5.3 (urgent)
    By sumaxx in forum Report ClassiPress Bugs
    Replies: 37
    Last Post: June 11th, 2011, 01:18 AM
  3. [SOLVED] Rejected by URLScan -- urgent -- site not working
    By gentleman in forum Report JobRoller Bugs
    Replies: 11
    Last Post: March 25th, 2011, 04:06 PM
  4. new ad submission - urgent
    By kyostrife in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: November 24th, 2010, 05:20 PM
  5. Need Urgent Help
    By dazzaboo2000 in forum Help Using ClassiPress
    Replies: 8
    Last Post: May 9th, 2010, 10:22 AM