ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Sudden PHP errors on file upload

June 26, 2009 8:27am

Subscribe [3]
  • #1 / Jun 26, 2009 8:27am

    angstmann

    225 posts

    Hi,

    I’ve been running ExpressionEngine for a client without issue for over 9 months. All has worked perfectly until recently when the client has noticed that they now get PHP errors when uploading images. I have updated EE to 1.6.7 but that was a long time ago, and this problem has only just been discovered. I haven’t installed any new plugins, extensions or modules since the site launched.

    I have contacted the hosting company and they have made no changes to server setup or even to the version of PHP on my domain, so I have rules out hosting issues for the time being.

    File/image uploading is handled using Mark Huot’s File addon, and has always worked perfectly. But now when you browse for an image, choose and image and Update/Save the entry the following errors come up:

    Warning: require_once(/home/artspace/public_html/cindarts08/plugins/pi..php) [function.require-once]: failed to open stream: No such file or directory in /home/artspace/public_html/cindarts08/core/core.typography.php on line 475

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/artspace/public_html/cindarts08/plugins/pi..php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/artspace/public_html/cindarts08/core/core.typography.php on line 475

    Interestingly, the file actually uploads fine, and displays on the site just fine, but this error is undesirable and confuses the client, who obviously assumes that there is a problem.

    I would welcome any assistance with this, as its puzzling me, and seems to only have occurred recently.

    Running EE V1.6.7, Build:  20090211

  • #2 / Jun 26, 2009 8:43am

    Mark Bowen

    12637 posts

    Richard,

    In the error messages above it isn’t showing the name of the plugin with the problem, instead it just says pi..php. What plugin is it referring to?

    Best wishes,

    Mark

  • #3 / Jun 26, 2009 8:47am

    angstmann

    225 posts

    Hi Mark,

    That is the full text of the error messages, copy and pasted from my browser window directly after sumbitting the entry with a file that needs uploading.  I noticed that it had truncated the filename of the plugin, but I have no more info other than what appears on the screen :(

  • #4 / Jun 26, 2009 8:57am

    Mark Bowen

    12637 posts

    Hmm never noticed messages truncated before. That’s not really going to help then is it :-(

    As you have said nothing has changed on the server and the host has said nothing has changed (I wouldn’t always believe that personally 😉 ) then about the only other thing I can think of is perhaps check out the names of all the images in the folder where they are getting saved to. Perhaps there is one that has been uploaded that has a weird filename or something? Might be throwing things off?

    Have you tried creating a brand new test weblog with the same fields or better still make a new field group just to rule out the extension. Might help with fault-finding a bit.

    Best wishes,

    Mark

  • #5 / Jun 26, 2009 9:00am

    angstmann

    225 posts

    Hi Mark,

    I am with a good host that I trust (more than a lot of others I’ve had!), so I have to take them at their word with regards any changes to their setup.

    Thanks for the suggestions, looks like this one could be very tricky to track down.

  • #6 / Jun 26, 2009 9:15am

    Mark Bowen

    12637 posts

    Thanks for the suggestions, looks like this one could be very tricky to track down.

    Yep I’m thinking that too. If however nothing at all has changed on the server or the ExpressionEngine set up and the client isn’t doing anything different there end when they upload the images then the only two things I can think of right now are memory limits - might need a boost in php.ini although if you are just uploading using the File extension then I don’t really see why it would need that unless the images are much larger that they are uploading now? The second thing would be filenames.

    Not really sure where the typography plugin comes in to all of this but then we don’t know what plugin it is referring to either unfortunately. Actually thinking about it now (not sure why it passed me before 😉 ) Mark Huots offering is an extension and not a plugin so perhaps check first that all the plugins are plugins that should be there, could the client have accidentally installed one via the admin panel? Also check that there isn’t actually a plugin called pi..php in the plugins folder.

    Other than that I think I will bow down to the excellent support team here.

    Best wishes,

    Mark

  • #7 / Jun 26, 2009 9:17am

    Mark Bowen

    12637 posts

    Oops meant to ask. This isn’t through an SAEF is it? Or are you using any of your plugins on any of the text-fields or text-areas in that weblog to provide formatting at all?

    Best wishes,

    Mark

  • #8 / Jun 26, 2009 9:21am

    angstmann

    225 posts

    Hi Mark,

    No SAEF’s in use. However, I am using the Textile plugin to apply formatting to text areas and also using the Textile Editor Helper.

  • #9 / Jun 26, 2009 9:38am

    angstmann

    225 posts

    Just for some extra info on this here is what my web hosts said when they looked into the issue:

    “Hi,

    Looking at the error itself it seems its not forming what file it wants to include properly.

    The files in the directory “/home/artspace/public_html/cindarts08/plugins/” are:
    root@miller [/home/artspace/public_html/cindarts08/plugins]# ls
    ./      pi.char_limit.php       pi.magpie.php     pi.textile.php
    ../      pi.gallery_breadcrumbs.php pi.markdown.php   pi.word_limit.php
    index.html pi.imgsizer.php         pi.randomizer.php pi.xml_encode.php

    You script is requesting the file “pi..php”

    I would suggest contacting ExpressionEngine about this.”

  • #10 / Jun 26, 2009 9:48am

    Mark Bowen

    12637 posts

    Yep as I thought the pi..php seems a little suspect to me although I don’t think that would be anything ExpressionEngine would be doing especially as you’ve been running the site successfully for such a while.

    Have you tried re-uploading all plugins and extensions just to make sure none of them are damaged in any way. Also try as I said and make a new weblog with a new field group set up the same way as the existing one and see if that has the same problems too. Will help to hopefully whittle things down a bit.

    Best wishes,

    Mark

  • #11 / Jun 26, 2009 9:52am

    Mark Bowen

    12637 posts

    Actually just had a thought on this one although something would have had to have changed for this to be it though. Have you recently updated ExpressionEngine at all?

    It might just be that because the File extension was written quite a while back that it needs the update so that the field formatting is set correctly on it. This thread here and this post on devot-ee.com give a bit more information on all of this.

    Best wishes,

    Mark

  • #12 / Jun 26, 2009 9:59am

    angstmann

    225 posts

    Hi Mark. You know what, that thought had crossed my mind too - I remember reading about that issue at the time the update was released. I did update to 1.6.7 at the time it came out, but that was quite a while ago now, and this is the first time the issue has been raised.

    I will look at those links. Thanks again.

  • #13 / Jun 26, 2009 10:03am

    Mark Bowen

    12637 posts

    Just found even better information for you. Wish I had started at the end of the thread though, had to go through 43 pages to find it 😊

    File Extension Fix

    Hope that gets you up and running again.

    Odd thing is though I’ve only once had to apply this fix (to the File extension anyway) and I’m fairly certain it was when the PHP version on the server changed from an older to a newer version. If something has always worked before and if you then apply this fix and it works again then it seems to me like something will have definitely changed somewhere.

    Best wishes,

    Mark

  • #14 / Jun 26, 2009 10:08am

    angstmann

    225 posts

    Yeah. Its a LONG thread that one!! Cheers for all your help Mark, it certainly sounds like I’m on the right track with those links. Will keep you updated on progress.

  • #15 / Jun 26, 2009 10:17am

    Mark Bowen

    12637 posts

    Yeah. Its a LONG thread that one!! Cheers for all your help Mark, it certainly sounds like I’m on the right track with those links. Will keep you updated on progress.

    Yep it is a long one that 😊 Definitely do keep me updated on this one, interested to see if that fixes things for you and if it does then I really would say that something else is at play here because if nothing has changed at all then nothing should really go wrong 😉 I still have a few bets on the server being at play on this one if nothing else changed.

    Anyway let me know how you get on.

    Best wishes,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases