vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Import External Images (https://vborg.vbsupport.ru/showthread.php?t=253309)

Manoel J?nior 01-05-2016 04:47 PM

My temp folder is with many pictures with the final cached, I can remove all these files?

Milobil 01-17-2016 12:43 PM

Hi,

My forum has been created in 2013 and I installted the mod 2 days ago, however it has only imported the 2013 images in my server. And even though the script is run, it doesn't create anything else now. There are no 2014 or 2015 folders the my server..

Can someone help me please ?

Milobil 01-18-2016 03:17 PM

Quote:

Originally Posted by Milobil (Post 2562812)
Hi,

My forum has been created in 2013 and I installted the mod 2 days ago, however it has only imported the 2013 images in my server. And even though the script is run, it doesn't create anything else now. There are no 2014 or 2015 folders the my server..

Can someone help me please ?

Any help please ?

Dragonsys 01-18-2016 03:49 PM

did you check the temp folder for bad images, as the others had issues with above?

TerryMason 01-18-2016 04:37 PM

I'd like to convert my site from http to https, and need to run this script to clear the way.

Is there a way to import the images using https, even though my forum url is using http only? Even better, can I have link them images using something like //www.forum.com/image.png, instead of specifying https.

*edit - never mind. I found that if I just put the desired url into the replament url section it works perfectly.

Thank you for this fantastic mod.

Milobil 01-19-2016 04:06 PM

Quote:

Originally Posted by Dragonsys (Post 2562894)
did you check the temp folder for bad images, as the others had issues with above?

Where can i find this temp folder please ? Is it the same as "Imported" folder ?

Regards

Milobil 01-22-2016 08:28 PM

Well it seems it's going good now :o

Kane@airrifle 10-28-2016 10:34 AM

If I placed IMG="{param}" into the image tag option field would the import process retain image titles?

EG: [IMG="This is an image title"]http://etc.etc [/ img]

y2ksw 10-29-2016 07:09 AM

Quote:

Originally Posted by Kane@airrifle (Post 2577398)
If I placed IMG="{param}" into the image tag option field would the import process retain image titles?

EG: [IMG="This is an image title"]http://etc.etc [/ img]

I can't remember ... why don't you try it? :)

tommythejoat 10-29-2016 09:48 AM

Unless you do something with the IMG tag, it does not accept a parameter and will not parse if one is present.

Several years ago, I created an ALT tag that uses the parameter as the image url and uses the argument as the contents of the alt attribute. I just changed that to use title instead of alt to conform with the current HTML recommendations.

khalled 11-11-2016 07:29 PM

Quote:

Originally Posted by Dragonsys (Post 2562894)
did you check the temp folder for bad images, as the others had issues with above?

Where can i find this temp folder please

khalled 11-20-2016 09:18 AM

HTML Code:

Originally Posted by Dragonsys  View Post
did you check the temp folder for bad images, as the others had issues with above?
Where can i find this temp folder please
29 Oct 2016 12:48

I will be thankful if any one can help:confused:

BadgerDog 11-26-2016 04:35 PM

1 Attachment(s)
Hi Giovanni ....

We just migrated our server to a new hardware platform. The old one was 10 years old.

Unfortunately, the import mod we've been running for years has stopped working and it simply hangs when the cron job executes. (see attached)

I enabled the cron log to test, but there's nothing showing an information in the log for the Import External Images job, so I assume the script never even executes.

The new server is running Apache/2.4.18 (Ubuntu) with PHP Version 5.6.28, but I don't think that should be an issue.

I'm not even sure what to check to see why it's stopped working and just hanging on a manual run after all these years?

Any help would be appreciated...

Regards,
Doug

Seven Skins 11-26-2016 05:08 PM

May be the folder permissions needs to be fixed.
(read/write/create) rights (chmod 777)

BadgerDog 11-26-2016 05:14 PM

Quote:

Originally Posted by Seven Skins (Post 2578719)
May be the folder permissions needs to be fixed. Change to 777

Thanks for suggestion and jumping in to help .. :)

I was just going to post a follow up...

Our developer got this fantastic mod working again .. :up:

Well, he really didn't do anything except as he says "added a bunch of new/updated image code development libraries to the server" ..

For whatever reason, that caused the mod to start working again immediately!!! :)

I'm so happy to have it running again.. our members would really miss it's ability to preserve image history from all the pics that they have built up and posted over these last many years.

Regards,
Doug

y2ksw 11-27-2016 09:35 AM

Quote:

Originally Posted by BadgerDog (Post 2578715)
Hi Giovanni ....

We just migrated our server to a new hardware platform. The old one was 10 years old.

Unfortunately, the import mod we've been running for years has stopped working and it simply hangs when the cron job executes. (see attached)

I enabled the cron log to test, but there's nothing showing an information in the log for the Import External Images job, so I assume the script never even executes.

The new server is running Apache/2.4.18 (Ubuntu) with PHP Version 5.6.28, but I don't think that should be an issue.

I'm not even sure what to check to see why it's stopped working and just hanging on a manual run after all these years?

Any help would be appreciated...

Regards,
Doug

... and also maybe fopen() for URL's is not enabled, or perhaps you got once again memory issues? Is memory swapping early?

y2ksw 11-27-2016 09:38 AM

Quote:

Originally Posted by BadgerDog (Post 2578721)
Thanks for suggestion and jumping in to help .. :)

I was just going to post a follow up...

Our developer got this fantastic mod working again .. :up:

Well, he really didn't do anything except as he says "added a bunch of new/updated image code development libraries to the server" ..

For whatever reason, that caused the mod to start working again immediately!!! :)

I'm so happy to have it running again.. our members would really miss it's ability to preserve image history from all the pics that they have built up and posted over these last many years.

Regards,
Doug

ok, I didn't see this :)

BadgerDog 11-27-2016 10:31 AM

Quote:

Originally Posted by y2ksw (Post 2578746)
ok, I didn't see this :)

No problem Giovanni .. :)

Running real well now.. again !!! :up:

Fabulous add-on to our site and much appreciated by our membership of retired military veterans. It does a great job of helping us gather and preserve historical photographs in a single location on our web site.

Regards,
Doug

Ashlar217 11-27-2016 07:00 PM

Perfect for helping me keep my site SSL.

Installed & working on 4.2.3. I ran the cron job in batches of 10, and no issues. Nice work :)

RichieBoy67 01-29-2017 07:19 PM

Been running this successfully on a few sites but today I am getting a ton of these database errors: I replaced the name of the clients domain.

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://wtfurls.com/images/86.jpg',
'mysite.com'
);

y2ksw 01-30-2017 10:09 AM

Quote:

Originally Posted by RichieBoy67 (Post 2581507)
Been running this successfully on a few sites but today I am getting a ton of these database errors: I replaced the name of the clients domain.

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://wtfurls.com/images/86.jpg',
'mysite.com'
);

Can you please send me the whole error via PM? As it looks here, there is no problem at all.

RichieBoy67 01-30-2017 06:28 PM

Thanks

Database error in vBulletin 4.2.5 Beta 1:

Invalid SQL:
INSERT IGNORE INTO iei_img (
oldurl,
newurl
) VALUES (
'http://wtfurls.com/images/86.jpg',
'removed'
);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Monday, January 30th 2017 @ 03:24:12 PM
Error Date : Monday, January 30th 2017 @ 03:26:13 PM
Script : removed/cronadmin.php?do=runcron&cronid=45
Referrer : removed/cronadmin.php?do=modify
IP Address : removed
Username : removed
Classname : vB_Database_MySQLi
MySQL Version :
Server : removed
User Agent :

y2ksw 02-01-2017 07:41 AM

Quote:

MySQL Error : MySQL server has gone away
This is an issue with your database server, there is nothing I can do about it.

RichieBoy67 02-01-2017 01:42 PM

Quote:

Originally Posted by y2ksw (Post 2581636)
This is an issue with your database server, there is nothing I can do about it.

I wonder if the host blocked it.. was working fine before.

y2ksw 02-02-2017 07:05 AM

Quote:

Originally Posted by RichieBoy67 (Post 2581641)
I wonder if the host blocked it.. was working fine before.

No, but they have changed the server settings in order to reduce the server load. Eventually you can get it back working by reducing the number of imported images for every run.

RichieBoy67 02-11-2017 02:51 PM

Quote:

Originally Posted by y2ksw (Post 2581660)
No, but they have changed the server settings in order to reduce the server load. Eventually you can get it back working by reducing the number of imported images for every run.

I only had it set to 1...

Anyway we can get this to import Tapatalk images?

KevinL 02-12-2017 02:45 AM

Figured it out. Great mod.

Thanks!

KevinL 02-13-2017 07:40 PM

Question, I am having an issue where a few images are being replaced with different images from the source image. Source images and replacement images are all different in different posts/threads.

Any insight on this issue? Let me know what you need from me.

Thanks

y2ksw 02-13-2017 08:33 PM

Quote:

Originally Posted by RichieBoy67 (Post 2582202)
I only had it set to 1...

Anyway we can get this to import Tapatalk images?

In theory yes, however I'm unsure about the technical problems.

y2ksw 02-13-2017 08:35 PM

Quote:

Originally Posted by KevinL (Post 2582277)
Question, I am having an issue where a few images are being replaced with different images from the source image. Source images and replacement images are all different in different posts/threads.

Any insight on this issue? Let me know what you need from me.

Thanks

No idea. Unless the server is feeding random images ...

Kane@airrifle 02-13-2017 08:53 PM

Quote:

Originally Posted by RichieBoy67 (Post 2582202)
I only had it set to 1...

Anyway we can get this to import Tapatalk images?

Quote:

Originally Posted by y2ksw (Post 2582280)
In theory yes, however I'm unsure about the technical problems.

Works just fine on my site.

RichieBoy67 02-15-2017 03:05 PM

Quote:

Originally Posted by Kane@airrifle (Post 2582285)
Works just fine on my site.

How did you accomplish it?

Kane@airrifle 02-15-2017 06:40 PM

Quote:

Originally Posted by RichieBoy67 (Post 2582371)
How did you accomplish it?

Not sure what you mean? Any external image url that sits between [img] tags in the post table is imported as is intended by this mod. Certainly is the case on my board unless I missing some other Tapatalk function..

djbaxter 02-17-2017 02:09 AM

Quote:

Version 1.0.4 is temporarily in BETA stage until the users have confirmed the newly requested features.

Version 1.0.5 is still in BETA stage. It adds a new bunch of additional features, one of which allows you to test your mathematical understanding ... and a few other to fine-tune CURL and socket timeouts, and resizing on the fly of too large images. If you don't know what these options do, please leave them at their default values.
Are these two versions still in beta?

djbaxter 02-19-2017 10:44 PM

I decided to install version 1.05 which seems to be working generally quite well except for the following error:

Code:

Database error in vBulletin 4.2.3:

Invalid SQL:
INSERT IGNORE INTO vbiei_img (
                        oldurl,
                        newurl
                    ) VALUES (
                        'http://www.websmileys.com/sm/love/458.gif',
                        'https://MYSITE/clear.gif'
                    );

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Monday, February 20th 2017 @ 12:24:53 AM
Error Date    : Monday, February 20th 2017 @ 12:26:54 AM
Script        : http://MYSITE/cron.php?rand=1487550292
Referrer      : https://MYSITE/showthread.php?{VARIOUS THREADS}
IP Address    : {VARIOUS}
Username      : Unregistered
Classname    : vB_Database_MySQLi
MySQL Version : {BLANK but is actually 5.6 /  10.0.29-MariaDB}

What's interesting is that so far at least it is always the same image (see above) but different threads and your add-on is in fact correctly inserting clear.gif in those threads.

I'm on a tweaked dedicated server so I don't think the "MySQL server has gone away" is the usual problem of too many connections (persistent connections is off)... not sure what to make of this.

Any suggestions?

Is it a bad idea to be running version 1.05? (I didn't get a response to my previous question above.)

BadgerDog 02-20-2017 02:52 PM

I'll add my 2 cents.... :)

I've been using y2ksw's mod for years and it's been working flawlessly on our v4.1.3 pl8 ... :up:

I check every morning by manually running his "vB4 Import External Images" cron job, just to see if it's hanging on any image imports, which way back in early versions used to be the result of it trying to import some HUGE freakin image a member had linked to in a post.

I haven't had it hang up for years, but I still check it as an old habit.... ;)

I'm running v1.06, but it's been so long, I can't remember why. That's what happens when you get to be almost 70. :D

I know I had PayPal donated to y2ksw for his excellent work and I also think I did more PayPal's a few times more as he privately helped me with some issues. I may have ended up with v1.06 as a result. For some reason, I think along the way working with him, he did something to ensure that it didn't crash when some clown member tries to link to a picture off-site that's too large for the code to handle. I think he also had me change some PHP values, but again, it's been so long since I've had to touch anything.

v1.06 is what my AdminCP currently shows me running and it's been reliable and probably one of the best vBulletin add-ons we use.

It's amazing to see images from members that go back years and years, which have long since been deleted from their original off-site linked to storage, still be showing in their posts. Being a research site, it has been extremely helpful in keeping old threads with pictures still relevant after several years, instead of getting that dreaded "Photo Missing" error.

Thanks again for your excellent add-on y2ksw ... :up:

Hope that helps someone else here ... :)

Regards,
Doug

RichieBoy67 02-20-2017 03:03 PM

I would be glad to donate towards an updated version that addresses the issues I mentioned in my above post.

Sonik_elf 02-21-2017 03:30 PM

Hello.
Sorry.. I installed it .. And? How to start the scanning process and import images?

djbaxter 02-21-2017 04:23 PM

1. Go to AdminCP >> Options >> Settings >>vB4 Import External Images and input your settings and enable the addon

2. Go to AdminCP >> Scheduled Tasks >> Scheduled Task Manager >> vB4 Import External Images

3. Edit your settings there and then enable the cron job /scheduled task.

djbaxter 02-21-2017 09:19 PM

It's now occurring with other images:

Code:

Invalid SQL:
INSERT IGNORE INTO vbiei_img (
                        oldurl,
                        newurl
                    ) VALUES (
                        'http://blog.lib.umn.edu/shea0017/philosophy/MATISSE%20ICARUS.JPG',

...

MySQL Error  : MySQL server has gone away

Missing images seem to create a problem?


All times are GMT. The time now is 09:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02121 seconds
  • Memory Usage 1,846KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete