Fatal error menu_get_object() in /includes/theme.inc on module install

When I try to install any module I get this error:

Fatal error: Call to undefined function menu_get_object() in /includes/theme.inc on line 2580

The code in question: https://i.imgur.com/7oqHqKH.jpg

I've tried the following:

  1. Clearing all caches
  2. Uninstalling recently installed modules

I ran a backtrace on the line right before it and this is the result:

I added:

Image styles not generating in public file system

I am using hybridauth module for social login with php7 as fcgi and php-event (for compatibility with http/2 protocol), ubuntu 16.04.

$100 Help with Drupal 7 to Drupal 8 Migration

I'm having trouble migrating a new client's site from D7 to D8.

I have already articulated the issue in detail on StackExchange, but as I haven't received any insight yet, I want to speed things up with a bounty.

Here's the original post: https://stackoverflow.com/questions/49089615/how-can-i-fix-these-errors-...

Issues with error messages

So I installed Drupal 7.57 because I couldn't find any up to date instructions for installing the current version 8.

db_query() not passing in values.

I'm working on some legacy code to get this Drupal 7 project to run on php7.1. I'm cleaning up some queries to use db_query() to sanitize input and there are some queries that just will not pass in their values. This is an example of one that I cannot see what I'm doing wrong.

echo $currentroleids;

2,3,8,40⏎

gettype ($currentroleids);

String

Referenced user field access

I have two fields in a content type. The first is a list of the site's registered users (user entity reference), the second is a textarea. I would want to ensure only referenced user can enter some value into the text in edit mode. Is there a module for this or custome code to achieve this?

The field permission module doesn't suit this as it only support permission for node creation and not editing. Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x