Hi,

im updating a drupal 6 site to drupal 7. when i update to linkchecker-7.x-1.x-dev.zip and then run update.php i get the following error:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: http://XXXXXXXX.COM/update.php?op=selection&token=cNjQocIxqpTjTruNEAMzn3... StatusText: OK ResponseText: Fatal error: Call to undefined function array_replace() in /is/htdocs/XXXXXXXX/drupal7folder/sites/all/modules/linkchecker/linkchecker.install on line 400

if i run update.php again, there are two operations pending

linkchecker module

7007 - Upgrade blacklisted internal filter names.
7008 - #965720: Add indexes to improve performance of views queries.

and then again i get the error.

Comments

Gfuber’s picture

Uninstalling linkchecker and then reinstalling solves the problem

hass’s picture

Priority: Normal » Critical

Oh bad... array_replace() seems to be PHP 5.3+ only. What PHP version are you running?

hass’s picture

Title: An AJAX HTTP error occurred » D7 Upgrade failed with PHP 5 < 5.3.0, array_replace() missing
Status: Active » Fixed
Gfuber’s picture

Im running PHP Version 5.2.17

hass’s picture

Can you try the upgrade on a test machine again, please? I was not able to test the fix...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

webservant316’s picture

Issue summary: View changes

I am seeing a related error with...

linkchecker 7.x-1.2
PHP 5.4.37
Litespeed 6.7

An AJAX HTTP error occurred. HTTP Result Code: 503 Debugging information follows. Path: /batch?id=10091&op=do StatusText: Service Unavailable ResponseText: 503 Service Unavailable 503 Service Unavailable The server is temporarily busy, try again later! Proudly powered by LiteSpeed Web ServerPlease be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.

hass’s picture

@webservant316: Can You stop posting unrelated stuff to old issues you do not understand, please?

webservant316’s picture

sorry, please forgive me. I do not understand the reason linkchecker is failing and I am not sure how to debug it. I will seek help elsewhere.

hass’s picture

The error does not point to linkchecker. No idea why you think it is linkchecker.

webservant316’s picture

The error I posted above is produced when I try to linkcheck 3 particular content types on my website site. All the other content types work great, but 3 content types produce this error as soon as I enable them them for checking at /admin/config/content/linkchecker. Linkchecker also works great on 4 other websites on my server, so I know my server is capable of running Drupal and your module successfully. However, on 1 of my websites when I enable 3 particular content types your module begins to process the nodes and chokes half way through.

I am assuming there is foul play with your module and the content type structure or malformed HTML in particular nodes or something.

I'll be glad to open a new ticket with my specific error if you are willing to help me get to the bottom of it. Like you say the problem may very well not be your module, but the intended function of your module is failing for an unknown reason.

Again I apologize for posting my question at the wrong place. Let me know how to proceed.

hass’s picture

If you run PHP module and such PHP nodes and have same function names defined than this is your fault. Check your watchdog and server logs and you will see the root cause. Quite simple.