Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
after the update from 7.x-2.4 to 7.x-2.5 and a cleared cache I get an warning message.
Warning: is_file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/virtual/my-domain.de/:/usr/share/php/:/var/www/bin/:/var/www/typo3/) in _pathologic_replace() (Zeile 229 von /var/www/virtual/my-domain.de/htdocs/sites/all/modules/pathologic/pathologic.module).
Unfortunately, I do not know what that means.
Can someone please help or explain it to me?
Thank you
Comments
Comment #1
DerekAhmedzai CreditAttribution: DerekAhmedzai commentedI just upgraded to 7.x-2.5 and got the same error.
Is it confusing the relative path '/' (aka
<front>
) with the Linux root directory?That would explain the permission problem.
Comment #2
Garrett Albright CreditAttribution: Garrett Albright commentedHmm, it appears that PHP is configured on your servers in such a way that it's taking exception to something that Pathologic tries to do to see if you are linking to a file. I'll try to replicate the error on my end and work around it. Thanks for bringing it to my attention.
Comment #3
Garrett Albright CreditAttribution: Garrett Albright commentedOkay, I was able to replicate the problem and worked out a workaround that'll hopefully stop this from happening. Please check out the 2.6 release, which will likely be available by the time you read this.
Comment #4
rappelkiste_src CreditAttribution: rappelkiste_src commentedThe 2.6 release works fine.
Thank you very much.
Comment #6
Talkless CreditAttribution: Talkless commentedI still get this error with Drupal 7.33 and Pathologic 7.x-2.12 in shared hosting with PHP 5.4.30.
It looks like this:
Comment #7
Garrett Albright CreditAttribution: Garrett Albright commentedTalkless, what input are you using to cause that error?
Comment #8
Talkless CreditAttribution: Talkless commentedExample links are /kategorijos/alius?page=2 which translates to taxonomy/term/something (default Views taxonomy view of teasers), or simply /?page=66 for frontpage view.
These errors shows only once, and repeats only when cache is cleared.
Now after some diging, I've found one exact article, which is shown in some page, that has HTML inside editor like this:
I have no idea how that anchor got there, maybe author pasted it from external text editor, and that strange link appeared... somehow..?
This article was written using old, no longer used FCKEditor input format, from times when sites was running on Drupal 6. Could this be upgrade issue?
Comment #9
Talkless CreditAttribution: Talkless commentedI've restored Drupal 6 backup, that anchor is there (since 2010).