WordPress.org

Ready to get started?Download WordPress

Forums

WP2Cloud
[resolved] Upload error (22 posts)

  1. cpcmaker
    Member
    Posted 1 year ago #

    Using WP 3.5 and wp-multi site, Clouse can be installed properly, all other plugins were disable. When uploading an image , I got an error message for uploading, but after checking I found that the image was uploaded to the Google Cloud Storage without any thumbnail.

    Please help,
    Thank you.

    http://wordpress.org/extend/plugins/wp2cloud-wordpress-to-cloud/

  2. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Could you provide the error message that you've got when uploading the file?

    Thank you!

  3. cpcmaker
    Member
    Posted 1 year ago #

    On the page "wp-admin/media-new.php"
    It stucked in Crunching... step.

    Using the media uploader on the page "wp-admin/post-new.php"
    I got this error:

    Error 4.jpg
    An error occurred in the upload. Please try again later.

    Thank you for your very fast response.

  4. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting.

    I've just created a subdomain-based multisite on Google Cloud Storage. I used vanilla WordPress 3.5 with the Twenty Twelve theme, network-activated WP2Cloud. I was able to create subsites and upload images with no problems; all thumbnails were generated and uploaded to the Google Cloud Storage, etc.

    Could you send an email to support at oblaksoft dot com so that someone could look into your install?

  5. cpcmaker
    Member
    Posted 1 year ago #

    Should I check for read/write permission for any file/folder?

  6. cpcmaker
    Member
    Posted 1 year ago #

    In Addition, I used a subfolder-based multisite.
    There was an error caused from path issue for the uploaded image too.
    The image was called from http://www.domain.com/sub/http://domain.com/sub/........jpg
    I modified the script to fix this issue, and it works. But the thumbnails-creation issue remains.

    Thank you very much for your help and suggestion.

  7. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    I've tried subfolder-based multisite on Google Cloud Storage and it worked fine (vanilla WordPress 3.5, Twenty Tweleve theme, network-activated WP2Cloud).

    Checking the webserver's error log may shed some light on what's going on. If you're using an Amazon Linux-based AMI (like the one provided by OblakSoft), the following command will print the end of the error log: sudo tail /var/log/httpd/error_log.

    Another troubleshooting step is to set WP_DEBUG to true in wp-config.php: replace define('WP_DEBUG', false); with define('WP_DEBUG', true);.

  8. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    During investigation of a different issue we noticed that the working configuration has define('WP_CONTENT_URL', '/wp-content'); in wp-config.php. Could you try defining WP_CONTENT_URL in wp-config.php and see if it works?

  9. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    We've just released WP2Cloud 1.3.2 that doesn't require setting WP_CONTENT_URL and works well with the default WordPress settings.

  10. cpcmaker
    Member
    Posted 1 year ago #

    I tried to freshly install wordpress and the plugin, but it's not work and got the same problem. I think it's a server configuration issue. What settings should I check?

    Thank you

  11. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    How does a broken image's URL look like?

  12. cpcmaker
    Member
    Posted 1 year ago #

    The image was uploaded, but the thumbnail wasn't created. On the page where uses the thumbnail, the full-size image was used instead. The image was showed with wrong size.

    Thank you.

  13. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    The symptoms look like you don't have php-gd installed. If you're using Debian/Ubuntu, run sudo apt-get install php5-gd, if you're using RHEL/CentOS run sudo yum install php-gd. Then restart Apache sudo /etc/init.d/httpd restart.

  14. cpcmaker
    Member
    Posted 1 year ago #

    Thenk you very much I will try .

  15. cpcmaker
    Member
    Posted 1 year ago #

    I got this error

    [admin@ns1 ~]$ sudo yum install php-gd
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    epel/metalink | 17 kB 00:00
    * base: mirror.siamdata.co.th
    * epel: mirrors.ustc.edu.cn
    * extras: mirror.siamdata.co.th
    * updates: mirror.siamdata.co.th
    base | 3.7 kB 00:00
    epel | 4.3 kB 00:00
    epel/primary_db | 5.0 MB 05:32
    extras | 3.5 kB 00:00
    updates | 3.5 kB 00:00
    updates/primary_db | 4.6 MB 00:00
    Setting up Install Process
    No package php-gd available.
    Error: Nothing to do

  16. cpcmaker
    Member
    Posted 1 year ago #

    So I use the php script <?php phpinfo(); ?> and got this :

    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.4.8
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

  17. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Interesting. Could you contact us so that someone could look into your configuration?

  18. cpcmaker
    Member
    Posted 1 year ago #

    For some file, I got this error

    Fatal error: Uncaught exception 'Exception' with message 'MySQL error: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='' in /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-content/plugins/wp2cloud-wordpress-to-cloud/wp2cloud.php:159 Stack trace: #0 /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-content/plugins/wp2cloud-wordpress-to-cloud/wp2cloud.php(789): Wp2CloudPlugin->query('update # set va...', Array) #1 /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-content/plugins/wp2cloud-wordpress-to-cloud/wp2cloud.php(384): Wp2CloudPlugin->upload_image_to_cloud('/home/northstar...', '/home/northstar...') #2 [internal function]: Wp2CloudPlugin->wp_handle_upload(Array, 'upload') #3 /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-includes/plugin.php(173): call_user_func_array(Array, Array) #4 /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-admin/includes/file.php(345): apply_filters('wp_handle_uploa...', Array, 'upload') #5 /home/xxxxxxxxxxxxxxxxxxxx/public_html/w in /home/xxxxxxxxxxxxxxxxxxxx/public_html/wp-content/plugins/wp2cloud-wordpress-to-cloud/wp2cloud.php on line 159

  19. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Hi cpcmaker,

    Thank you for the error report!

    Could you provide the following info about your case:

    1. Version of WP2Cloud plugin.
    2. MySQL version.
    3. Values of DB_CHARSET and DB_COLLATE from wp-config.php.
    4. The file name for which you're getting this error.

  20. cpcmaker
    Member
    Posted 1 year ago #

    Thank you for you response.

    1. WP2Cloud plugin Version 1.3.2
    2. MySQL client version: 5.5.28
    3. define('DB_CHARSET', 'utf8'); and define('DB_COLLATE', '');
    4. daily-lom-word-2013-เหลิง.png

    The problem with the message above occurred when I tried to upload the files which their names combined with Thai words.

    The files of English-word name were uploaded to the cloud, but stucked in the crunching step, so the thumbnails were not created, without any error message.

    Thank you for your help.

  21. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the information. Uploading a file with that name does trigger a problem with the plugin. We've coded up a fix and can give you a pre-release version for testing. Send an email to support [at] oblaksoft [dot] com to get the code.

  22. Artem Livshits
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you again for working with us through the support channels and helping us to nail down the issues. We've released WP2Cloud 1.3.3 with the fixes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.