Has anyone ever run into a problem where submitting an event results in the submit input not existing in the $_POST variable? As a result, the event is not triggered.

  • It's the only event on the page.
  • The event name and submit trigger match.
  • It's a default Symphony section event with multiple entries allowed.

Here is the event load method:

    public function load(){
        if(isset($_POST['action']['update-products-items'])) return $this->__trigger();

Here's the form that triggers the event:

<form method="post" action="" enctype="multipart/form-data">
    <xsl:apply-templates select="products-for-update-prices/entry" mode="update"/>
    <!-- Submit -->
    <input name="action[update-products-items]" type="submit" value="Submit" />

If I var_dump($_POST) from the event's load method, I get all of the fields but no action[update-products-items]...

It must be something stupid but I simply cannot find it after several hours.

Nevermind, I just realized what is happening. The post array is too big. I've run into this problem before and I've never understood why it fails silently.

I've never understood why it fails silently

For anyone else interested or for those who have run across the same issue… PHP throws a E_WARNING but Symphony suppresses this to work with PHP >= 5.3.

Hah, thanks for this one. I was struggling with this exact same problem.


Glad it helped! I was losing my mind.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details