Account created on 9 February 2007, almost 18 years ago
#

Recent comments

I had this problem with the documents media type when was in the UI for Manager display it had this error and i was prevented from making changes. I mention this here in case anyone encounters the same.

'Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::mimeTypeApplies() (line 171 of core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php)' was repeated many times. (on D 10.3.2)

It seems by default the documents type has a long list of acceptable suffixes:
file_extensions: 'txt rtf doc docx ppt pptx xls xlsx pdf odf odg odp ods odt fodt fods fodp fodg key numbers pages'

replacing with the shorter list: txt, doc, docx, pdf -- solves the problem. maybe this should be looked at.

As it is now, the module has a different name, "p5js" -- and it doesn't support processing.js (but of course, names can be changed, and i suppose it could be modified to support both?). So it's worth thinking about if it makes sense for it to be part of this, or different module.

i'm new to git. haven't used slack, or GitLab, i haven't ever maintained a module - or made software for someone else to use for that matter. so doing all this stuff would take some time for me to figure out.

maybe getting on slack would be a place to start.

Although i started from this module, the project has really diverged to the point, i'm not sure how related it is. But i've never written a module before. I don't really know php that well. And I'm not even that familiar with the last 4 versions of Drupal.

I do have a working version of a P5.js module, i'm close to finishing . The main module has display code with a formatter. There are two submodules, one for sketches as a media type, and the other as a filter, which is what is based on the processing.js module.

the p5 code is formatted to output to a script tag in an iframe with the p5.js library attached. there is a js controller in the main page and in the iframe to coordinate resizing to be responsive.

there are modes (like this module): code first, sketch first, sketch only -- i added a mode that is sketch only with the code obfuscated. there is animation for switching between code and sketch.

there are display options that effect resizing and can add a fullscreen mode.

default mode and options can be selected with settings. if the allow override option is selected, there is a way to specify mode and options in attributes of the short tag, or in a comment in the case of the media entity.

i don't really know how to write unit tests. i've tried to work on that a little, but need some assistance. and though i think it's close to all working, i would really like other people to look at it and give some feedback. Not really sure about how to make that happen.

I'm interested in creating a p5.js module and am writing a custom one currently for my website. Please contact me if you are interested in collaborating on making it a project for Drupal.

I see the same error.

Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\file\Plugin\Field\FieldType\FileItem->fieldSettingsForm() (line 177 of core/modules/file/src/Plugin/Field/FieldType/FileItem.php).
Drupal\file\Plugin\Field\FieldType\FileItem->fieldSettingsForm(Array, Object) (Line: 207)
Drupal\image\Plugin\Field\FieldType\ImageItem->fieldSettingsForm(Array, Object) (Line: 219)
Drupal\field_ui\Form\FieldConfigEditForm->form(Array, Object) (Line: 107)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('field_config_edit_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Production build 0.71.5 2024