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?

4
  • 1
    Is anything present in reports ? localhost/mysite/admin/reports/dblog
    – Gaydabura
    Commented Oct 14, 2012 at 16:29
  • there is nothing in the reports Commented Oct 14, 2012 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? Commented Feb 12, 2014 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? Commented Apr 16, 2014 at 8:07

1 Answer 1

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 and acknowledge you have read our privacy policy.

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