Posted by ArjanLikesDrupal on September 29, 2008 at 10:40pm
5 followers
Jump to:
| Project: | Pathauto |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
When I upload and save imagefield files with tokens for the filename (in my case: "[yyyy][mm][dd]-[title].[filefield_paths-ext]") I get these errors:
# warning: preg_match() expects parameter 2 to be string, array given in /sites/all/modules/transliteration/transliteration.inc on line 53.
# warning: mb_eregi_replace() expects parameter 3 to be string, array given in /sites/all/modules/pathauto/pathauto.inc on line 228.The files are named correctly and put in the right place. I use the setting 'Cleanup using Pathauto'. When I uncheck this, there are no errors.
Comments
#1
@ArjanLikeDrupal
Sorry for the inexcusably late response.
I have tested with the same settings and have not received any errors.
I'm guessing you may be using an old version of Pathauto or the Transliteration module.
Please let me know what versions you are using and dates if you are using development builds and if you have the ability upgrade those versions and let me know how that goes.
#2
Hm, maybe it is also related to my problem here: #311526: Recursion error in filefield_paths.
I see there is now another issue that is probably also related, although it has a different line number: #324736: * warning: mb_eregi_replace() expects parameter 3 to be string, array given in....
I have no problems with Pathauto in general (for aliasing nodes).
The 2 errors only appear when using 'Cleanup using Pathauto', not with just 'Transliterate' or 'convert to lower case'.
These are the modules I am using (yes, that many :S):
Drupal Administration Menu 6.x-1.1
Automatic Nodetitles 6.x-1.0
Backup and Migrate 6.x-1.0
Bibliography Module 6.x-1.0-beta8
Calendar 6.x-2.0-rc4
Condition(s) 6.x-2.5
Content Construction Kit (CCK) 6.x-2.0-rc10
Date 6.x-2.0-rc4
download_count 6.x-1.3
Email Field 6.x-1.1
Embedded Media Field 6.x-1.0-alpha4
Fast Gallery 6.x-3.1-beta1
FCKeditor - WYSIWYG HTML editor 6.x-1.3-rc3
FileField 6.x-3.0-alpha5
FileField Paths 6.x-1.x-dev (2008-Okt-22)
Global Redirect 6.x-1.x-dev (2008-Sep-16)
Google Analytics 6.x-1.2
Internationalization 6.x-1.0-beta4
ImageAPI 6.x-1.0
ImageCache 6.x-2.0-beta1
ImageField 6.x-3.0-alpha2
IMCE 6.x-1.1
Invisimail 6.x-1.x-dev (2008-Jun-14)
Lightbox2 6.x-1.8
Link 6.x-2.5
Menu block 6.x-2.0
Menu Trails 6.x-1.0
Meta tags 6.x-1.0-rc1
Path Access 6.x-1.x-dev (2008-Aug-11)
Path Redirect 6.x-1.x-dev (2008-Jun-01)
Pathauto 6.x-2.x-dev (2008-Sep-13)
search_config 6.x-1.3
Shared Sign-On 6.x-1.3
Taxonomy Manager 6.x-1.0-beta2
Token 6.x-1.11
Translation Overview 6.x-1.4
Transliteration 6.x-2.0
Upload path 6.x-1.0
View Reference 6.x-2.8
Views 6.x-2.1
Virtual Sites 6.x-1.3
#3
Same issue here. I have the following modules
admin_menu
cck
contemplate
filefield
filefield_paths
image
imageapi
imagefield
ldap_integration
pathauto
phpbbforum
token
views
#4
#324736: * warning: mb_eregi_replace() expects parameter 3 to be string, array given in...
#5
Same problem here. Both pathauto and transliteration are in newest supported version. It happens when adding ANY node type, with or without attached images.
#6
Hi!
I have exactly the same issue. This is not a Filefield issue, see http://drupal.org/node/324736#comment-1574912
(I also cannot edit ANY content that has its node number changed by pathauto).
Moving to pathauto and escalating. I cannot believe that this issue has been hanging on for 3/4 of a year!
Thanks!
-Brian