• Resolved Malae

    (@malae)


    Hello,

    I chose the Rolo Slider plugin because I was impressed with the implementation of the Ken Burns effect. I installed it in WP 4.8.9 on WAMP running PHP 7. I was able to create a slider with about 50 slides all of fixed height, title all bottom left, and was very happy with the results.

    After installing WP with the same theme and plugins on hosting (same versions and PHP) I exported from the WAMP site and imported the xml file. After changing all the URL’s it ran, but then I found that only 35 images were displaying. There were a few other missing images and title issues including positions, that had changed, but I corrected by editing the slider, except for the last slide (No. 35), which will not save the title in the bottom position and I also cannot save additional slides beyond this point.

    I opened the xml file and found some errors and tried to import back to the WAMP site after deleting the original. It will not import, although I am able to start creating a new slider there. I have checked the database, found no problems, but ran repair and still cannot import, also after uninstalling and reinstalling the Rolo Slider plugin.

    I should like to ask whether there is a limit to the number of slides.

    Finally I found 2 PHP notices in WP debug:

    PHP Notice:  Undefined offset: 0 in \wp-content\plugins\rolo-slider\import\parsers\wxr-simple-xml.php on line 44
    and
    PHP Notice:  Undefined index: base_url in wp-content\plugins\rolo-slider\import\importer.php on line 94

    I was able to fix the second notice but not the first.

    I really like the slider and would appreciate some assistance with the issues.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Malae

    (@malae)

    Discovered a third notice:
    Notice: wp_get_http has been deprecated since version 4.4.0 Use WP_Http instead in \wp-content\plugins\rolo-slider\import\importer.php on line 772
    Still no luck with importing.

    • This reply was modified 6 years, 3 months ago by Malae.
    Plugin Author pressfore

    (@pressfore)

    Hello,

    And thanks for contacting us.

    Plugin is using same functionality for importing from WordPress importer plugin, so notices are fine, and won’t cause problems when importing. Notices are not errors. Also, as you can see slides were imported. You can check WordPress importer code and you’ll see that they are alike, especially for these parts where base_url variable is used, so nothing to worry about. I can only guess that problems with import were related with resources since they are also common when using WordPress importer plugin – usually when max_execution time is lower or some other server config. I assure you that we didn’t set any limit to the number of slides. Importer code will be updated when WP Importer releases some major update, and regarding wp_get_http – it is deprecated from version 4.4 but it will continue to work like many other deprecated WP functions. Off course we will replace this function with suggested in next update, but again this won’t cause problems with import.

    Regards,

    Thread Starter Malae

    (@malae)

    Thank you for your reply. My present status is that I can get everything working on the WAMP server with a slider set up to show more than 50 slides with everything working as it should and am very happy with the results.

    I decided to start from scratch again on the hosted site with a new exported xml file, which is much bigger (more complete?) than the last one and I was able to complete the import to the hosted site. I was able to see the images in the slider, but noted that the URLs were for the localhost. I tried changing the URLs to the hosted site URL and saving, but images were not displayed in the editor. I then re-added each image and saved, which seemed to work. However, on checking the final result on the slider page, I found that the images had not saved/loaded after No.35. Up to that point all images displayed as they should except for the last slide (No. 35), which did not save the title in the bottom position and in fact did not display at all. I also cannot save additional slides beyond this point. This result is identical to that of my first attempt as related above, so I am back to square one.

    I am aware that notices are not errors, but according to many posts on the subject of
    Notice: wp_get_http has been deprecated since version 4.4.0 Use WP_Http instead,
    it appears it can cause problems problems, reported by many others over the past 2 years, e.g.
    ... the problem isn't really the error notice — it's that wp_get_http() calls @set_time_limit( 60 ); internally, which means the importer can fatal while importing large files. When the importer fatals, then some amount of user data is broken.(sic)
    and
    This issue breaks pretty much every import I run, until I remember to hack wp_get_http() and remove the set_time_limit().
    Perhaps this is the issue, or I have take some wrong steps, or am missing something. I would appreciate help with this.

    • This reply was modified 6 years, 3 months ago by Malae.
    Thread Starter Malae

    (@malae)

    I found the following after my attempts to upload more image files.
    PHP Notice: Trying to get property of non-object in /wp-content/plugins/media-library-organizer/includes/admin/media.php on line 414

    Plugin Author pressfore

    (@pressfore)

    Hi again,

    Regarding, image URLs, it is intended to be like that, and images will point to URLs from imported domain, so you need to add them to media library on site where you have imported slides, and to set image again for each slide. This is mentioned in this topic https://www.ads-software.com/support/topic/php-errors-94/page/2/

    While testing import, I couldn’t reproduce issue with not being able to update slides, if you could, please send us your xml file at pressfore[@]gmail.com so we can test with it.

    Regarding wp_get_http() notice, it can cause that but you can overcome it by repeating import, like when this happen with WordPress importer, but it really shouldn’t timeout for just 50 slides.

    Second one is from WordPress core
    /wp-content/plugins/media-library-organizer/includes/admin/media.php
    and from my experience it is usually hosting config related, or it is issue with hosting package resources, so if you’ll be doing some more test please also open developers tools in Chrome or Firefox and watch console for some errors. Common problem with Import can be WordPress memory limit and upload time, and it is good if you can increase these values or ask your hosting service to do that for you.

    max_execution_time = 300;
    memory_limit = 256M;
    upload_max_filesize = 64M;
    post_max_size = 256M;

    After increasing memory limit on hosting it is also important to set it in WordPress https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    If hosing is using mod_security, then also try to set following line to WordPress .htaccess file. You can put this line at the end of the file, after the # END WordPress line https://www.screencast.com/t/uatdkTku0bx :

    SubstituteMaxLineLength 10m

    Regards,

    Thread Starter Malae

    (@malae)

    Hello,

    Thank you for your response with explanations and suggestions. I was successful in fixing the problem, but will add some further comments for the benefit of others, who may experience similar issues.

    When I set up the slider on the WAMP localhost, I did not experience any memory or timeout problems, probably because they are common issues with WAMP and I had long ago set higher values. I had already uploaded all the images to the hosted site and, when I imported the XML slider file, I was surprised that it had imported the images, thus duplicating them in the media library. They displayed after I changed the URLs in the slider editor. I noted that the image WP IDs are used so one has to be careful, when deleting duplicates.

    Regarding your suggestions to increase memory limits and execution time, I had already tried increasing several values without success including the following:

    max_execution_time 180 seconds
    memory_limit 128 MB

    including setting in the wp-config.php file. I had also increased max-input time, max_file uploads, max input _vars on the server settings without success.

    However, I repeated using the increased limits you suggested and was immediately successful: a big relief.

    Btw, I did not use SubstituteMaxLineLength 10m

    To anyone who experiences problems as I did, I can only advise: keep trying, because the results are worth the effort. Its a great plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Import problems, limit on number of images?’ is closed to new replies.