Posted by sgtaw on February 16, 2008 at 9:21pm
Jump to:
| Project: | Pathauto |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello,
I get this error when trying to create a forum in Drupal 6
---------BEGIN------------------
* warning: mb_ereg_replace() expects parameter 3 to be string, array given in /home2domain/public_html/modules/pathauto/pathauto.inc on line 158.
* warning: mb_ereg_replace() expects parameter 3 to be string, array given in /home/domain/public_html/modules/pathauto/pathauto.inc on line 158.
---------------------END----------------
Comments
#1
Marked http://drupal.org/node/223758 a duplicate of this and updated the title.
#2
Same issue, slightly different errors.
warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in /home/.katch/user/drupal/includes/module.inc on line 473.
warning: mb_ereg_replace() expects parameter 3 to be string, array given in /home/.katch/user/drupal/sites/all/modules/pathauto/pathauto.inc on line 165.
Occurs when adding or editing forums or containers. Second error can repeat many times when editing an existing forum or container.
#3
Good Day,
Getting it to when I submit a page or any other content.
* warning: mb_ereg_replace() expects parameter 3 to be string, array given in /hsphere/local/home/friedelectronics.com/sites/all/modules/admin/pathauto/pathauto.inc on line 165.
* warning: mb_ereg_replace() expects parameter 3 to be string, array given in /hsphere/local/home/friedelectronics.com/sites/all/modules/admin/pathauto/pathauto.inc on line 165.
Thanks
#5
Forum uses taxonomy see bug #219541 and try patch. Maybe some versions of php not suffer of Bug #42177 and the warning array_merge_recursive() not occurs
#6
@joglin - then I guess this is a duplicate of issue #219541: warning: array_merge_recursive() ?
@mrgoltra and @phosphoric and @sgtaw can you test that?
#7
I also get this error.
I have the latest dev, I assume the bug #219541 patch is included?
I should add that I get the error whenever creating or editing a node.
Shoot, I might be doing this to the wrong issue.
I just realized that my error is on line 178 rather than 158.
#8
@Miraploy - please alter your code like this:
if (function_exists('mb_eregi_replace')) {$output = mb_eregi_replace($ignore_re, '', $output);
}
if (function_exists('mb_eregi_replace')) {drupal_set_message('<pre>'. print_r($output, true) .'</pre>'); // THIS LINE IS NEW
$output = mb_eregi_replace($ignore_re, '', $output);
}
Then when do whatever is necessary to get the error and copy/paste the output from the drupal_set_message into a comment on this issue.
#9
#10
This was my guess:
That's a sign that there is something else wrong with your installations of some other module. Can you please start disabling modules on the site until you are left with just Pathauto and Token. If you disable a module, do this test, and repeat that process we will be able to determine which one it is.
#11
2 weeks with no response -> back to duplicate.
#12
I have also this problem and it is active.
#13
@darkpollo - please do the debugging steps that were done to find the source of the problem initially. Note that this was found not to be a pathauto problem...
#14
2 more weeks without response...
#15
Sorry been busy but it seems to be ok now. I have tested on 3 sites.
Thanks a million and Happy Holidays!
#16
We get this on our site (Redmami - a site for Spanish parents), when users create content, but NOT when admins or editors create content. Is this a permissions issue?
warning: mb_eregi_replace() expects parameter 3 to be string, array given in /########/htdocs/sites/all/modules/pathauto/pathauto.inc on line 184.
#17
Hi there,
still getting the same issue here. It appears when saving nodes.
printing the error output gives this: (the rest is just text pieces from the page)
Array
(
[de] => Array
(
[press !x to close] => !x zum Schließen drücken
[@count-anon / @count-auth] => 1
[Name] => Name
[Description] => Beschreibung
[Edit] => Bearbeiten
[OR] => ODER
[AND] => UND
[Disable rich-text] => Rich-Text deaktivieren
[Enable rich-text] => Rich-Text aktivieren
[Bold] => Fett
[Italic] => Kursiv
[Underline] => Unterstrichen
[Strike-through] => Durchgestrichen
[Align left] => Linksbündig
[Align center] => Zentriert
[Align right] => Rechtsbündig
[Justify] => Blocksatz
[Bullet list] => Aufzählungszeichen
[Numbered list] => Nummerierung
[Outdent] => Einzug verkleinern
[Indent] => Einzug vergrößern
[Undo] => Rückgängig
[Redo] => Wiederholen
[Link] => Link einfügen
[Unlink] => Link entfernen
[Anchor] => 1
[Image] => Bild
[Forecolor] => 1
[Backcolor] => 1
[Superscript] => Hochgestellt
[Subscript] => Tiefgestellt
[Blockquote] => Geblocktes Zitat
[Source code] => Quellcode
[Horizontal rule] => 1
[Cut] => Ausschneiden
[Copy] => Kopieren
[Paste] => Einfügen
[Paste Text] => Text einfügen
[Paste from Word] => Aus Word einfügen
[Show blocks] => Blöcke anzeigen
[Remove format] => Format entfernen
[Character map] => 1
[About] => Über
[HTML block format] => HTML-Blockformat
[Font] => Schrift
[Font size] => Schriftgröße
[Font style] => Formatvorlage
[Table] => Tabelle
[Search] => Suchen
[Replace] => Ersetzen
[Select all] => Alles markieren
[Create DIV container] => DIV-Container erstellen
[Flash] => Flash
[Smiley] => Smiley
[FitWindow] => 1
[Check spelling] => Rechtschreibung überprüfen
[Autogrow] => 1
[BBCode] => 1
[Table drag/resize] => 1
[Table: Cell properties] => 1
[Table: Insert row after] => 1
[Table: Insert column after] => 1
[Table: Insert cell after] => 1
[Table: Delete rows] => 1
[Table: Delete columns] => 1
[Table: Delete cells] => 1
[Table: Merge cells] => 1
[Table: Horizontal split cell] => 1
[Teaser break] => 1
[Separate the teaser and body of this content] => 1
[Price must be in a valid number format. No commas and only one decimal point.] => Preis muss ein gültiges Zahlenformat haben, keine kommas und nur einen dezimal Punkt
[HTML filter] => HTML-Filter
[Line break converter] => Zeilenumbruchkonverter
[URL filter] => URL-Filter
[HTML corrector] => HTML-Korrektor
[Include iFrame] => 1
[Lightbox filter] => Lightbox-2 Filter
[Lightbox G2 filter] => Lightbox-G2 Filter
[Lightbox slideshow filter] => Lightbox-Slideshow Filter
[Lightbox iframe filter] => Lightbox-IFrame Filter
[Lightbox video filter] => Lightbox-Video Filter
[Lightbox modal filter] => Lightbox-Modal Filter
[Disable Lightbox iframe filter] => Lightbox-Iframe Filter deaktivieren
[Paging] => 1
[Related products were updated.] => 1
[!long-month-name August] => !long-month-name August
[@count years] => @count Jahre
[@count weeks] => @count Wochen
[!long-month-name September] => !long-month-name September
[Nodes] => Beiträge
[Nodes are a Drupal site's primary content.] => Beiträge sind der primäre Inhalt einer Drupal-Website.
[Comments] => Kommentare
[Comments are responses to node content.] => Kommentare sind Antworten auf Inhalte von Beiträgen.
[Users] => Benutzer
[Users who have created accounts on your site.] => Benutzer, die Konten auf der Website erstellt haben.
[Our store] => Unser Shop
[N/A] => k.A.
[Unknown] => Unbekannt
[Drupal] => Drupal
[Sep] => Sep
[Saturday] => Samstag
[Sat] => Sa
)
)
0
Any help would be highly appreciated.
#18
Ha!
I did some more research and found this http://drupal.org/node/324404 thread.
I was able to reproduce the error - it belongs to the Advanced Blog module, once I disable that, the error is gone.
Hope this will help to resolve the issue.
Greetz,
R.