A couple of days ago someone/something was hitting one of my websites with undefined urls. Two of those url's where:
www.example.com/function.require-once and www.example.com/function.require

This fine module issues the following error:
Fatal error: Call to undefined function url() in xxx/html/sites/all/modules/path_redirect/path_redirect.module on line 45

I think this is an error in this module.

Thanks for your great module.

Comments

avpaderno’s picture

That is really strange: url() is a function that is present in the core code of Drupal; it's not even present in a core module, it is present in a file that is included at bootstrap time (I mean when Drupal receive a page request).
Are you sure about the function being called, and not being present?

I then don't understand what you mean with the first part. May you give the address of one of the web sites which is giving that problem?

promes’s picture

I found the message in the "admin/logs/watchdog", but the actual message has been deleted now.
Today I found several new messages with similar "page not found" URL's but without a PHP warning.

The actual site (drupalhandboek.nl) receives some days so many bad requests / page not found errors / page requests with scripts and other shit (hackers/crackers ?) it will give over 20 pages of watchdog-log entries a day. I believe they love to hack or crack my site (as they actually managed to do at least once).

Since you cannot find anything in your module, I propose to close this issue.

Thanks for your attention.

Promes

avpaderno’s picture

I just meant that the function url() is always present, and it is defined from Drupal. The only cases you get such a message error is when some Drupal files have been deleted, or PHP is not able to find them anymore.

The error messages you talk of, which show URLs ending with function.require-once, and function.require are messages that tell you those PHP commands (require_once, and require) were not able to include a PHP file. I would suggest you to check your Drupal installation because maybe some files have been deleted, or there is a problem in the Drupal configuration.

avpaderno’s picture

Status: Active » Postponed (maintainer needs more info)
avpaderno’s picture

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)