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

Invalid parameter number: number of bound variables does not match number of tokens: SELECT 1 AS expression

Good Morning

I get this error: Invalid parameter number: number of bound variables does not match number of tokens: SELECT 1 AS expression

I need to insert an array of values into a field in the table using merge

I attach my code for revision. Thank you

Drupal 8: custom module translations (.po)

Hi!

How to use the D8 .po translations in my module after module install?

# mymodule.info.yml
name: mymodule
core: 8.x
version: 1
type: module
package: mymodule
description: My module.
interface translation project: mymodule
interface translation server pattern: modules/mymodule/translations/%project-%language.p

The lang file is:

mymodule/translations/mymodule-hu.po

The drush did not use it!

Invoking Drupal 8 from a client-executed PHP script

I have another question running about how to include a Drupal 8 page with PHP here:
https://www.drupal.org/forum/support/module-development-and-code-questio...

This question is slightly different.

Split payments from one item to different accounts

Hi, I use both Commerce Paypal and Commerce Authorize.Net, and I want to split payments from one item to two different accounts. For example if I buy a t-shirt for 12€, let 7€ go to the designer's account and 5€ go to another account, (management costs).

Can anyone help me with this?

Thank you very much for your help.

Greetings

how to include a Drupal 8 page in PHP ?

let's say I place a php script in Drupal root directory.

in Drupal 7, I could do this:

ob_start();
$_GET['q']="node/1";
include 'index.php';
$drupalpage = ob_get_contents();
ob_end_clean();

and I would have my node/1 in my $drupalpage variable.

how would I achieve the same thing using Drupal 8 ?

Drupal 8 - Language switcher in menu vs routing

Hi everyone,

I've been searching a lot for a code snippet or module that would allow me to create a language switcher menu link.

I found something interesting, to be pragmatic, proposed by GregCube on StackOverFlow:

How to make a language switcher in main menu for Drupal8

I created a module with the code proposed, but it works only for logged user. The <mymodule>.links.menu.yml file uses

Pages

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