Search

I have install #1 with Symphony 2.2 (cloned when it was finally released) and Multilingual Field, among other extensions.
I also have install #2 with almost same configuration, with Symphony 2.2 cloned last evening.

In each install I have a News section with exact same fields: Publish Tabs, Mulilang Text, Mulilang Text, Mulilang Text, Order Entries, Checkbox, Unique File Upload, Date, Mulilang Text, Mulilang Text.

The catch is that on install #2 on symphony/publish/news listing all events, somehow the function displayPublishPanel from multilingual_field/lib/field.multilingual.php gets called without any obvious reason.

On install #1 I don't have this problem, displayPublishPanel doesn't get called. Any ideas why that might happen?

It should get triggered only when editing entries, not on the listing page.

Update

displayPublishPanel gets called for Order Entries as well on install #2 while on install #1 it doesn't.

Update 2

I replaced symphony folder from install #2 with symphony folder from install #1 but the issue persists.

Update 3

Copy + pasted all extensions from install #1 and it works.
Multilingual Field is responsible for the suspect calls. Publish Filter is responsible.

The problem is that Multilingual Field loads its .js asset with this function and messes all JS in the page (Order Entries, Publish Filter etc)

Publish Filtering calls the displayPublishPanel method for all fields in a section, when you view the table of entries. It shouldn't call it anywhere else. I don't really understand the problem you're having.

What exactly is and is not working when you have Publish Filtering installed?

Are you saying that the multilingual field is loading assets on the entry table page when it should not be? If so then this is a bug that needs to be be fixed with that extension. Does your proposed fix in the other thread resolve the issue? Other than that, I don't really understand the problem.

(PS. Could you try and keep the reports to one thread only? It's now mentioned simultaneously here, in the Publish Filtering thread, and the Multilingual Field thread. It's difficult to keep track of. Thanks!)

@nick

Sorry for the multiple threads... I tried to ask each developer a simple question so I can understand the inner workings and see where the fix should go.

Multilingual field loads the necessary assets via displayPublishPanel() method on line 462 in lib/field.multilingual.php:

$this->_driver->addPublishHeaders($this->_engine->Page);

I didn't know why that method was called on an index page. Now I do.

Publish Filtering calls the displayPublishPanel method for all fields in a section, when you view the table of entries.

This is the intended behavior of your extension so the fix definitely needs to go in Multilingual field.

Thank you for your time.

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