• Resolved Martín

    (@caparros07)


    Hi! I′m getting this error.

    My sliders were not showing, so I tried to change the option to load the script in footer. I don′t remember wich option I′′ve selected, but since that I get this error when I go to settings, try to edit a slider or create new.

    Would you help me? Thanks in advance

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author John West

    (@f1rehead)

    Are you using the latest version? I fixed an issue with array_merge in 2.5.11. I’ve been testing and can’t make this error happen. Can you post the entire error from your logs? That might help.

    Thread Starter Martín

    (@caparros07)

    I recorded a screencast, I have the last version either WordPress and plugins. I′m sorry for my horrible english.

    https://drive.google.com/file/d/12i21orBoE1r2fdqoOlsCLbwWntlM808r/view?usp=sharing

    Plugin Author John West

    (@f1rehead)

    I watched your video. It’s very helpful but there are several places in the code where that error could come from. Do you have access to the error logs on your server? What would be most helpful would be the lines in the log around the error. That would tell me which file and which array_merge command is causing the problem.

    You English is very good. Much better than my Spanish!

    Thread Starter Martín

    (@caparros07)

    Hi! Thanks for your help. There′s no any error_log in my root.

    I also have enabled WP debug mode and nothing was recorded in the debug file. So I′m confussed.

    Plugin Author John West

    (@f1rehead)

    Hi – Sorry I was on a holiday without Internet.

    The error log is part of your webserver. It looks like your webserver is apache, so there’s a good chance it will be in /var/log/apache/ or /var/log/httpd/ (Linux or Mac) or something similar to C:\Program Files\Apache Software Foundation\Apache2.4\logs\ (Windows), but it could be anywhere if you have a shared hosting service. You would have to check with them or their documentation.

    Thread Starter Martín

    (@caparros07)

    Hi!, Thanks a lot for your response. I′m waiting for acces to the hosting, so I can get the error log from there. I′m going to update this in the next hours, please don′t close the topic.

    Kind regards!

    Plugin Author John West

    (@f1rehead)

    I’m not going to close this topic. I want to fix the issue for you.

    Thread Starter Martín

    (@caparros07)

    Thanks. While I wait for the acces to hosting… Do you think how can I manually change (from database or php file) the option to switch the code between header and footer? Because that was the option that I changed and caused this error. Before this, the slides were not showing but I hadn′t gotten the error

    Plugin Author John West

    (@f1rehead)

    The option in the wp_options table is “slideshow-jquery-image-gallery-stylesheet-location” and the value can be “head” or “footer”.

    To see the current value:

    SELECT * FROM wp_options WHERE option_name = 'slideshow-jquery-image-gallery-stylesheet-location'

    (This assumes that the $table_prefix in wp-config.php is set to “wp_” but it could be set to anything in your WordPress install).

    So to change it to the other value:

    UPDATE wp_options SET option_value = "footer" WHERE option_name = 'slideshow-jquery-image-gallery-stylesheet-location'

    Change “footer” to “head” if needed. Let me know how it goes.

    Thread Starter Martín

    (@caparros07)

    Thank you so much. I changed the option but it doesn′t fix the error.

    Now I have deactivated all the plugins except Slideshow SE and I could get into the general settings. And in the Syltes section I see this error:

    Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in […] wp-content/plugins/slideshow-se/classes/SlideshowSEPluginSlideshowSettingsHandler.php:544 Stack trace: #0 […]/wp-content/plugins/slideshow-se/classes/SlideshowSEPluginSlideshowSettingsHandler.php(544): array_merge(Array, ”) #1 […]/wp-content/plugins/slideshow-se/classes/SlideshowSEPluginSlideshowSettingsHandler.php(213): SlideshowSEPluginSlideshowSettingsHandler::getDefaultStyleSettings(true) #2 […]/wp-content/plugins/slideshow-se/classes/SlideshowSEPluginPostType.php(221): SlideshowSEPluginSlideshowSettingsHandler::getStyleSettings(88610, true) #3 […]/wp-admin/includes/template.php(1445): SlideshowSEPluginPostType::styleMetaBox(Object(WP_Post), Array) #4 […]/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post)) #5 […]/wp-admin/post-new.php(75): require(‘/srv/vhost/fund…’) #6 {main} thrown in […]/wp-content/plugins/slideshow-se/classes/SlideshowSEPluginSlideshowSettingsHandler.php on line 544

    <font style=”vertical-align: inherit;”><font style=”vertical-align: inherit;”>Estoy usando PHP 8.0.28</font></font>
    Theme: Hello Elementor (with Child)

    • This reply was modified 1 year, 5 months ago by Martín.
    • This reply was modified 1 year, 5 months ago by Martín.
    • This reply was modified 1 year, 5 months ago by Martín.
    Plugin Author John West

    (@f1rehead)

    Perfect. This is exactly what I need. I’ll look into it and get back as soon as I can.

    Thread Starter Martín

    (@caparros07)

    Thank you! I replaced the full path of the folders wih “[…]”.

    Regards!

    Plugin Author John West

    (@f1rehead)

    I think I found the problem but I need to confirm. Can you send me the output from this database query:

    SELECT * FROM wp_options where option_name like 'slideshow-jquery%'

    You can delete any of the rows that have “custom” in them.

    Thread Starter Martín

    (@caparros07)

    Plugin Author John West

    (@f1rehead)

    I see the issue and you can fix it with this SQL:

    update wp_options set option_value = "a:1:{s:5:\"style\";s:15:\"style-light.css\";}" where option_name = 'slideshow-jquery-image-gallery-default-style-settings'

    I don’t know how that value got erased. That is a problem.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘TypeError thrown array_merge(): Argument #2 must be of type array, string given’ is closed to new replies.