3

I want to configure the URL alias patterns on my site. When I try visiting the http://localhost/mysite/admin/config/search/path/patterns, I get an error saying "The website encountered an unexpected error. Please try again later." All other paths work fine with the exception of the above. Any ideas on what could possibly be the course?

  • 1
    Is anything present in reports ? localhost/mysite/admin/reports/dblog – Gaydabura Oct 14 '12 at 16:29
  • there is nothing in the reports – Nana Akwasi Oct 14 '12 at 20:12
  • I have the same issue. The report message is: Recoverable fatal error: Argument 2 passed to _token_token_tree_format_row() must be of the type array, string given, called in /.../sites/all/modules/token/token.pages.inc on line 130 and defined в функции _token_token_tree_format_row() (line 179 in file /.../sites/all/modules/token/token.pages.inc). Any ideas? – Peter Lozovitskiy Feb 12 '14 at 3:41
  • 1
    The unexpected error usually means that the actual error is supressed by the server settings. Have you updated the token module in major version recently? Have you run the update.php script? – Alexei Rayu Apr 16 '14 at 8:07
1

Usually this is due to the php memory being set too low.

Instead of increasing for the entire site, you could target the specific page by adding this to the settings.php file in your sites folder.

if (isset($_GET['q']) && strpos($_GET['q'], 'admin/config/search/path/patterns') === 0) { ini_set('memory_limit', '512M'); }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.