This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

blank white screen after switching from 5.6 to 7xx

Dear  communty,

I am running two websites on drupal 7 with php 5.6, and when I switched to the next higher php or to even more higher versions, a white blank screen appear.  Both sites react the same.

1.) Could the problem be caused due to the fact that for switching a couple of months ago from 5.3 to 5.6,  I had to delete the "node export" modul of both sites - I don't think so, does it? -

Entity Query not working in all contexts

Hi All, this is my first drupal 9 project, 9.1.5. I've built many modules for older version of drupal, but this has me stumped.

So, this is my problem: I want to use cron to trigger a function frequently, every minute, to check an email box, and turn new emails into nodes. ( call this the boze_ingest() function ) I set this all up, and to trigger it, I just called the function from a basic page with php code format type.

Error when trying to use the RoleExpireApiService

I am trying to use the RoleExpireApiService (from the role_expire module) - but can't seem to get it right!

Here is my code:

use Drupal\role_expire\RoleExpireApiService;
RoleExpireApiService::writeRecord($uid, $rid, strtotime('+1 month', time()));

But I am getting this error. Can anyone please help me figure out what I am doing wrong?

Layout Builder Custom block type menu

I've created a custom block type and stuck it in a module, works fine.

In layout builder when adding this block I have to click Create Custom Block and there it is in the list and that works.

I with to add it to the first screen that pops up when adding blocks.

The following code "almost" works. when taking the inline block at the bottom away I see the Scott category and the block but the link doesn't work because it needs inline block in the url. I put inline block at the bottom again and I don't see the link anywhere.

Not to sure on what namespace to use

Expose the webform fields into jsonapi

Hi,

Is it possible expose the webform fields and attributes into jsonapi

Regards,

VJ

Cache Issue

Hi,

I have created a module with dynamic content and it does display the content correctly. (ie the block code works as expected)

I've added some code to the block configuration in the Structure>Block Layout>MyBlock>PHP section, to determine whether to display the block or not:

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions