Forum Replies Created

Viewing 15 replies - 31 through 45 (of 61 total)
  • Forum: Plugins
    In reply to: Website crashed

    Get a clean and new wp-config-sample.php from a fresh WP download.
    Edit ONLY the lines in it you need to edit to access your database. That is, copy in db name, host, user, password.
    Save a copy of config.php
    Upload new file as config.php

    Forum: Plugins
    In reply to: Website crashed

    OK, the white page is often the result of a little bit of code being wrong in either the config.php file or the functions.php (in theme).

    I’ve actually found that it’s sometimes due to an extra RETURN at the end of either of those files.

    Are all plugins turned off?

    Have you reverted TwentyEleven theme?

    I’m getting this error also:

    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

    Is this a hosting issue maybe?

    Forum: Plugins
    In reply to: Website crashed

    FTP in and delete the Total W3 Cache plugin from wp-content/plugins/ folder.

    If that doesn’t do it, make a duplicate of the plugins folder and delete all plugins, then start adding them in one at a time until it fails again. Then you’ll know which is causing the problem.

    Also, could be a problem in your theme. If the plugins stuff doesn’t fix it, switch to TwentyEleven.

    And it never hurts to reinstall WordPress from scratch. Sometimes an update results in a file that’s not quite right.

    OK, so you want a hook or two to remove the header image and then add new code to embed the SWF there?
    Not sure how to do that.

    Link that might help:
    http://phpdoc.wordpress.org/trunk/WordPress/Twenty_Eleven/_wp-content—themes—twentyeleven—functions.php.html

    Well, why functions? Why not edit the header.php

    Is it the same flash movie on all pages? (If you want a featured image as Flash, that’s beyond me, but likely doable.)

    First things first: You know it’s best NOT to edit the theme proper? Instead create a child theme. Search the codex for this if you don’t know. It ensures that when TwentyEleven gets updated, it doesn’t wipe out what you’ve done.

    Then save a copy of header.php from TwentyEleven into your child theme folder and edit it. Header image info is lines 78-97 in the version I’m looking at. Replace it with the embed code for your flash movie and you should be good to go.

    I’m not real clear on what you’re trying to do. There should be no need to activate NextGen in template files UNLESS you want the gallery to show up outside the loop.

    To put a gallery in a post or page, you just use the shortcode as outlined here:
    http://nextgen-gallery.com/gallery-page/nggallery/page-2/

    Once NextGen is installed and activated as a plugin, you can drag a widget to any active sidebar.

    I tend to use the NextGen Smooth plugin and here’s how I implemented in a modified TwentyTen theme. The following goes in the header.php and replaces TwentyTen’s header image — on the home page only — with a Smooth Gallery of the same size. This code should work fine with NextGen by itself.

    And now that I look at, I wonder why the shortcode works within PHP and outside the loop. Hmmm.

    <?php
    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    	if ( is_front_page() ) :
      $homeslides = "[smooth=id: 1; width:940; height:198; timed:true; arrows:false; carousel:false; links:false; info:false; align:center; frames:true; delay:9000; transition:fade;]";
      smooth_show($homeslides);
      elseif ( is_singular() &&
    							has_post_thumbnail( $post->ID ) &&
    							( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    							$image[1] >= HEADER_IMAGE_WIDTH ) :
    						// Houston, we have a new header image!
    						echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    					else : ?>
    						<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    					<?php endif; ?>

    Here’s a great explanation of ways to do background images that scale:
    http://css-tricks.com/3458-perfect-full-page-background-image/

    Some of the solutions are CSS-only, so will be easy to implement in Thesis. Just put the CSS in custom.css in the custom folder within your thesis theme folder.

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    Can’t find it. Giving up for the night.

    I think you should ask the plugin developer how to delete that path.

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    Yep, I hear you.
    If this plugin did a clean uninstall, it’d be nice. It’s unlikely.

    So I think you need to do a little database editing.
    Buried somewhere in the database is that path to your old Fasthost directory:
    /home/fhlinux008/e/exercisesupplies.co.uk/user/htdocs/comparison/external.php

    You need to find that little bastard and delete it.

    To do that, I’d suggest going into the CPanel and finding PHPmyAdmin in the database section. Navigate to your database and login.

    For some reason, my phpMyAdmin isn’t working. I’m trying to replicate the problem so I can solve it. Will let you know if I succeed.

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    So you moved the database and it includes the path:
    /home/fhlinux008/e/exercisesupplies.co.uk/user/htdocs/comparison/external.php
    ?
    Which refers to the old host “fasthost”?

    So to fix, you could uninstall the plugin and ensure that all references to it are deleted from database. Then reinstall and it *should* rebuild the path with the new server info.
    Alternatively, talk to the host again (I know they’ve not been helpful but be patient) and ask them what the path should be. Then search the database and replace the path with the correct one.

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    Ah, well one problem is that the plugin exec-php is throwing errors:
    http://www.exercisesupplies.co.uk/tag/boxing-gloves/
    Warning: require() [function.require]: open_basedir restriction in effect. File(/home/fhlinux008/e/exercisesupplies.co.uk/user/htdocs/comparison/external.php) is not within the allowed path(s): (/home/exercise:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/exercise/public_html/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 2

    So the PHP that isn’t working is what you’re injecting on pages/posts?

    I don’t know this plugin but it looks like the root of your problem is there. Try opening a ticket in the forums for the Exec-PHP plugin. The people who use it may know better than some of us.

    And it never hurts to re-upload the plugin fresh, to ensure it’s uploaded properly.

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    Do you have cPanel access? Can you check there if PHP is in fact running? If it’s PHP5?
    Is your site visible at all? Just admin pages are the problem?
    What’s the URL?

    Forum: Fixing WordPress
    In reply to: Cant change PHP

    Run away. Switch hosts to a reputable one.

Viewing 15 replies - 31 through 45 (of 61 total)