• Resolved eat123

    (@eat123)


    So i get this error message, after upgrading to 2.33 from 2.31

    An error of type E_RECOVERABLE_ERROR was caused in line 682 of the file /hermes/bosnacweb02/bosnacweb02cc/b246/ipg.riissettlement/wp-content/plugins/photonic/layouts/Layout_Default.php. Error message: Argument 4 passed to Photonic_Layout::get_gallery_data_attributes() must be an instance of string, string given, called in /hermes/bosnacweb02/bosnacweb02cc/b246/ipg.riissettlement/wp-content/plugins/photonic/layouts/Layout_Default.php on line 337 and defined

    Due to this error. I am unable to edit the page where the photo gallery is.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Which PHP version are you on?

    Thread Starter eat123

    (@eat123)

    PHP 5.6

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hmm. Can you upgrade to 7.x?

    If not, there is a fix you can try (while I patch the plugin):

    1. In your WP plugin editor (Plugins → Plugin Editor), select Photonic for editing, and go to the file layouts/Layout_Default.php.
    2. In line 682 you will see this:
      private function get_gallery_data_attributes($short_code, $processor, array $pagination, string $columns) {
    3. Change it to this:
      private function get_gallery_data_attributes($short_code, $processor, $pagination, $columns) {

    Once you save the file, this should go away.

    Thread Starter eat123

    (@eat123)

    I can confirm that this change successfully works to display the gallery and am able to edit the page again. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error message regarding Layout.php’ is closed to new replies.