[Plugin: HTML Import 2] Import Images Fails – html-importer.php line 961
-
This plugin has already saved me some time, and I’d like to use it to its full potential and import html and images en-masse.
I can only get it to work importing html only, I’ve got it cleaning up the formatting exactly how I want it, and I’d like to import images too.
when I try I get the following error.
Warning: strrpos() expects parameter 3 to be long, string given in /home/mmmonkey/public_html/wordpress/wp-content/plugins/import-html-pages/html-importer.php on line 961
Could not find the right path to snes-rgb-nocap.jpg (tried /snes-rgb-nocap.jpg). It could not be imported. Please upload it manually.Originally my jpg files were in a separate directory, so I took a couple of pages, made the structure completely flat and did a quick edit on the html to reflect the flattened structure, but as you can see from the error above it doesn’t like that either.
So I look in html-importer.php for line 961
953 – // in case this server doesn’t have php_mbstring enabled in php.ini…
954 – if (!function_exists(‘mb_strlen’)) {
955 – function mb_strlen($string) {
956 – return strlen(utf8_decode($string));
957 – }
958 – }
959 – if (!function_exists(‘mb_strrpos’)) {
960 – function mb_strrpos($haystack, $needle, $offset = 0) {
961 – return strrpos(utf8_decode($haystack), $needle, $offset);
962 – }
963 – }Unfortunately that doesn’t mean anything to me, way above my head. But I know I don’t have access to edit php.ini. Is having that enabled the only way for it to work, or am I missing something obvious?
Many thanks
Pete
- The topic ‘[Plugin: HTML Import 2] Import Images Fails – html-importer.php line 961’ is closed to new replies.