WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cycle
Can't uplodad images via WP-Cycle (3 posts)

  1. DavisDaddy
    Member
    Posted 1 year ago #

    Greetings. I'm having trouble uploading images via WP-Cycle on my linux
    system. (I've actually tried this on three similar systems with basically the same results.)

    I've seen various references to this kind of problem on the web, but I haven't found anything that helps me.

    Here's the configuration:

    Fedora 16, x86_64.
    WordPress 3.4.1
    mysql 5.5
    php 5.3
    Apache 2.2
    WP-Cycle 0.1.12

    When I try to upload an image, the upload never succeeds, and I get the
    following messages on an otherwise-empty WP-Cycle plugin page:

    Warning: basename() expects parameter 1 to be string, object given
    in /usr/share/wordpress/wp-content/plugins/wp-cycle/wp-cycle.php on
    line 137

    Warning: file_exists() expects parameter 1 to be string, object given
    in /usr/share/wordpress/wp-includes/media.php on line 250 Catchable
    fatal error: Object of class WP_Error could not be converted to string
    in /usr/share/wordpress/wp-includes/media.php on line 251

    I have no trouble uploading exactly the same file to be used as a background image, and it appears that uploading a background image uses essentially the same "machinery" for uploads that WP-Cycle does.

    BTW, the other two systems on which I've tried this are both Fedora 17
    systems, similarly configured with the latest WP and WP-Cycle. I've gone through this exercise using the WordPress package that comes with Fedora and by downloading the WordPress source directly.

    I've tried this with and without firewalls, with and without selinux
    (additional level of security on Fedora), etc. I've tried changing ownership and access privileges for the uploads directory. (And, as I mentioned, the background image goes into the uploads directory without any problem, suggesting that file permissions are probably not the source of the problem.)

    Any suggestions?

    Thanks.

    -- Mike

    http://wordpress.org/extend/plugins/wp-cycle/

  2. mrioa
    Member
    Posted 1 year ago #

    Hi Mike,

    I used to see a "WP_Error" too. But it wasn't shown in the Plugin-Page but in my database where the information about the wp-cycle-images are stored.

    Just curious if you set the Image Dimension (width) to less than 101px?

    (More info about my problem can be found in this topic )

    Bye,
    Mario

  3. DavisDaddy
    Member
    Posted 1 year ago #

    Hi, Mario. Thanks for the follow-up. I haven't reduced the Image Dimension
    at all, but I like your suggestion to look in the database at the wp_options
    variable. (The MySQL aspect of WP is a mixed blessing, IMHO.)

    -- Mike

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic