• Resolved goldmember

    (@goldmember)


    when i try and upgrade a number of different plugins, i get an error message saying i need php 5.3 or higher. however a few days ago (to try and resolve the situation) i logged in to my godaddy account and upgraded to php 5.4. still i am getting the error messages when attempting to upgrade various plugins.

    godaddy suggests it may have something to do with the “addhandler” lines in my htaccess file in the root directory. here’s what that file looks like:

    addhandler x-httpd-php-cgi .php4
    addhandler x-httpd-php5-cgi .php
    addhandler x-httpd-php5-cgi .php5
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/services/image.php?siid=$1&$2 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    i have no idea how the addhandlers got in there, who put them in, or when they were inserted or why. regardless when i remove them, and save the .htaccess file without them, then i refresh my site, i get a 404 error message.

    any idea how to resolve? please advise. thanks in advance!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator James Huff

    (@macmanx)

    Did you also remove the content between “# BEGIN WordPress” and “# END WordPress”?

    Thread Starter goldmember

    (@goldmember)

    no i did not. should i? it seems like one of our plugins inserted some code in there that it may need to transition some images. but i dont know for sure.

    Moderator James Huff

    (@macmanx)

    Can you show us the full code of your .htaccess file as it is now?

    Thread Starter goldmember

    (@goldmember)

    right now, it’s exactly as it is in the initial post above.

    Moderator James Huff

    (@macmanx)

    Ok, try emptying the whole thing, then try re-saving your permalink structure at Settings/Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    Thread Starter goldmember

    (@goldmember)

    i removed the first line with addhandler x-httpd-php-cgi .php4 and everything still worked. but when i remove anything else (any other addhandler lines, or everything altogether as you suggested), the site breaks and shows 404 error messages so i’m unable to access the permalink structure in the dashboard.

    here’s what my htaccess file currently looks like:

    addhandler x-httpd-php5-cgi .php
    addhandler x-httpd-php5-cgi .php5
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    i have no idea when or how this line of code disappeared from the file between yesterday and today: RewriteRule ^shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/services/image.php?siid=$1&$2 [QSA,L]

    regardless. i cannot do as you instructed and remove any more pieces of the htaccess or all the contents of that file without breaking the frontend and dashboard. were you suggested that i delete the actual file, rather than the contents inside it?

    Moderator James Huff

    (@macmanx)

    Try removing everything but this line:

    addhandler x-httpd-php5-cgi .php

    Then, try re-saving your permalink structure at Settings/Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    Thread Starter goldmember

    (@goldmember)

    thanks. so it seems to be working with just that line of code left.

    however i am back to square one. when i try and upgrade a number of different plugins, i get an error message saying i need php 5.3 or higher. however a few days ago (to try and resolve the situation) i logged in to my godaddy account and upgraded to php 5.4. still i am getting the error messages when attempting to upgrade various plugins.

    Moderator James Huff

    (@macmanx)

    Ok, you’ll need to contact GoDaddy about that, as they’re the ones who have control over which version of PHP is operating.

    If WordPress claims you do not have PHP 5.3 or higher, then you don’t.

    Thread Starter goldmember

    (@goldmember)

    every time i raise the issue to godaddy they tell me:

    “our scope of support is pretty limited when it comes to directly troubleshooting your code, but it’s feasible that the Theme or a Plugin needs that Line to function and now that you’re using a newer or different Plugin they are not compatible with each other.”

    this is a live ecommerce site and its holiday season so the last thing i want to do is start de-activating all the plugins and testing, and maybe breaking something else. any idea if there’s a way to search the plugin files to find something related so i can pinpoint a problematic plugin?

    the these is just a twenty thirteen child theme.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You will likely have to hire a developer to resolve this for you: https://jobs.wordpress.net

    Moderator James Huff

    (@macmanx)

    I’d approach it this way with GoDaddy:

    “I have set my account to run PHP 5.4, but everything I try to install claims that I’m only running something lower than PHP 5.3.”

    Thread Starter goldmember

    (@goldmember)

    thanks james. i got it figured out. had to do with a constant contact plugin. regardless, i appreciate the assistance.

    Moderator James Huff

    (@macmanx)

    Excellent, thanks for letting us know what it was!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘htaccess issue and plugin upgrades’ is closed to new replies.