• Resolved MicheleMJ

    (@michelemj)


    Hi – I downloaded FooGallery this afternoon with hopes I could achieve something I’ve been working on for a gallery. I’m getting there, but when I preview the gallery, I am getting this un-deletable text at the top of the page, and also in the gallery builder:

    Warning: array_key_exists() expects parameter 2 to be array, string given in /home/itsgoing/public_html/theeverydays.com/wp-content/plugins/foogallery/includes/class-thumbnail-dimensions.php on line 63

    I have activated both Foogallery and FooBox Image Lightbox. Can you advise? Thanks.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author bradvin

    (@bradvin)

    Hi @michelemj,

    Which gallery template are you using for your gallery? I want to try and reproduce the warning on my side, which I have not been able to do so far.

    thanks

    Thread Starter MicheleMJ

    (@michelemj)

    Hi @bradvin- thanks so much for writing me back. I’m using the responsive image gallery with Lenscap theme from Array. I also have downloaded and activated FooBox Image Lightbox. I also have screenshots if that helps. Thanks again.

    Plugin Author bradvin

    (@bradvin)

    Thanks for the info so quickly. I am also testing with that gallery and still cannot reproduce this warning. Can you send me the dump of your System Info (under the foogallery menu) so I can try to at least reproduce your environment.

    thanks

    Thread Starter MicheleMJ

    (@michelemj)

    You bet – shall I paste it here or is there a place to message you?

    Plugin Author bradvin

    (@bradvin)

    you can paste here or pastebin or email it to me: brad [at] fooplugins.com

    Thread Starter MicheleMJ

    (@michelemj)

    I’ll email and send screenshots. Thanks @bradvin.

    I’m having the same thing on another blog of mine, but I’ll post here to keep things centralized.

    When adding to a gallery I get

    Warning: array_key_exists() expects parameter 2 to be array, string given in /home/rttrdm17/public_html/wp-content/plugins/foogallery/includes/class-thumbnail-dimensions.php on line 63
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/rttrdm17/public_html/wp-content/plugins/foogallery/includes/class-thumbnail-dimensions.php:63) in /home/rttrdm17/public_html/wp-includes/pluggable.php on line 1195

    When accessing the gallery (LINK)

    I get this:

    Warning: array_key_exists() expects parameter 2 to be array, string given in /home/rttrdm17/public_html/wp-content/plugins/foogallery/includes/class-thumbnail-dimensions.php on line 63

    and image sizes are all weird.

    FooGallery system info:

    FooGallery version : 1.2.19
    WordPress version : 4.7.4
    Activated Theme : X
    WordPress URL : https://rttrdm.net
    PHP version : 7.1.4
    PHP GD Loaded : 2
    Extensions Endpoint : https://raw.githubusercontent.com/fooplugins/foogallery-extensions/master/extensions.json
    Extensions Errors : Nope, all good
    Extensions : 
    Extensions Active : Array
    (
        [0] => default_templates
    )
    
    Gallery Templates : Array
    (
        [0] => default
        [1] => image-viewer
        [2] => justified
        [3] => masonry
        [4] => simple_portfolio
        [5] => thumbnail
    )
    
    Lightboxes : Array
    (
    )
    
    Settings : Array
    (
        [gallery_template] => default
        [gallery_sorting] => 
        [default_gallery_settings] => 0
        [caption_title_source] => title
        [caption_desc_source] => desc
        [thumb_jpeg_quality] => 100
        [use_original_thumbs] => on
        [language_images_count_none_text] => No images
        [language_images_count_single_text] => 1 image
        [language_images_count_plural_text] => %s images
    )
    
    Active Plugins : Array
    (
        [0] => addfunc-head-footer-code/addfunc-head-footer-code.php
        [1] => autodescription/autodescription.php
        [2] => contact-form-7/wp-contact-form-7.php
        [3] => cornerstone/cornerstone.php
        [4] => foogallery/foogallery.php
        [5] => heart-this/heart-this.php
        [6] => nxs-snap-pro-upgrade/nxs-snap-pro-upgrade.php
        [7] => rocket-lazy-load/rocket-lazy-load.php
        [8] => shortpixel-image-optimiser/wp-shortpixel.php
        [9] => social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php
        [10] => stagtools/stagtools.php
        [11] => the-seo-framework-title-fix/the-seo-framework-title-fix.php
        [12] => wp-jquery-lightbox/wp-jquery-lightbox.php
        [13] => wp-optimize/wp-optimize.php
        [14] => wp-retina-2x/wp-retina-2x.php
        [15] => wp-rocket/wp-rocket.php
        [16] => wp-sitemap-page/wp-sitemap-page.php
        [17] => wplr-sync/wplr-sync.php
    )
    
    Server Mime Types : Array
    (
        [jpg|jpeg|jpe] => image/jpeg
        [gif] => image/gif
        [png] => image/png
        [bmp] => image/bmp
        [tiff|tif] => image/tiff
        [ico] => image/x-icon
        [asf|asx] => video/x-ms-asf
        [wmv] => video/x-ms-wmv
        [wmx] => video/x-ms-wmx
        [wm] => video/x-ms-wm
        [avi] => video/avi
        [divx] => video/divx
        [flv] => video/x-flv
        [mov|qt] => video/quicktime
        [mpeg|mpg|mpe] => video/mpeg
        [mp4|m4v] => video/mp4
        [ogv] => video/ogg
        [webm] => video/webm
        [mkv] => video/x-matroska
        [3gp|3gpp] => video/3gpp
        [3g2|3gp2] => video/3gpp2
        [txt|asc|c|cc|h|srt] => text/plain
        [csv] => text/csv
        [tsv] => text/tab-separated-values
        [ics] => text/calendar
        [rtx] => text/richtext
        [css] => text/css
        [htm|html] => text/html
        [vtt] => text/vtt
        [dfxp] => application/ttaf+xml
        [mp3|m4a|m4b] => audio/mpeg
        [ra|ram] => audio/x-realaudio
        [wav] => audio/wav
        [ogg|oga] => audio/ogg
        [mid|midi] => audio/midi
        [wma] => audio/x-ms-wma
        [wax] => audio/x-ms-wax
        [mka] => audio/x-matroska
        [rtf] => application/rtf
        [js] => application/javascript
        [pdf] => application/pdf
        [swf] => application/x-shockwave-flash
        [class] => application/java
        [tar] => application/x-tar
        [zip] => application/zip
        [gz|gzip] => application/x-gzip
        [rar] => application/rar
        [7z] => application/x-7z-compressed
        [exe] => application/x-msdownload
        [psd] => application/octet-stream
        [xcf] => application/octet-stream
        [doc] => application/msword
        [pot|pps|ppt] => application/vnd.ms-powerpoint
        [wri] => application/vnd.ms-write
        [xla|xls|xlt|xlw] => application/vnd.ms-excel
        [mdb] => application/vnd.ms-access
        [mpp] => application/vnd.ms-project
        [docx] => application/vnd.openxmlformats-officedocument.wordprocessingml.document
        [docm] => application/vnd.ms-word.document.macroEnabled.12
        [dotx] => application/vnd.openxmlformats-officedocument.wordprocessingml.template
        [dotm] => application/vnd.ms-word.template.macroEnabled.12
        [xlsx] => application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
        [xlsm] => application/vnd.ms-excel.sheet.macroEnabled.12
        [xlsb] => application/vnd.ms-excel.sheet.binary.macroEnabled.12
        [xltx] => application/vnd.openxmlformats-officedocument.spreadsheetml.template
        [xltm] => application/vnd.ms-excel.template.macroEnabled.12
        [xlam] => application/vnd.ms-excel.addin.macroEnabled.12
        [pptx] => application/vnd.openxmlformats-officedocument.presentationml.presentation
        [pptm] => application/vnd.ms-powerpoint.presentation.macroEnabled.12
        [ppsx] => application/vnd.openxmlformats-officedocument.presentationml.slideshow
        [ppsm] => application/vnd.ms-powerpoint.slideshow.macroEnabled.12
        [potx] => application/vnd.openxmlformats-officedocument.presentationml.template
        [potm] => application/vnd.ms-powerpoint.template.macroEnabled.12
        [ppam] => application/vnd.ms-powerpoint.addin.macroEnabled.12
        [sldx] => application/vnd.openxmlformats-officedocument.presentationml.slide
        [sldm] => application/vnd.ms-powerpoint.slide.macroEnabled.12
        [onetoc|onetoc2|onetmp|onepkg] => application/onenote
        [oxps] => application/oxps
        [xps] => application/vnd.ms-xpsdocument
        [odt] => application/vnd.oasis.opendocument.text
        [odp] => application/vnd.oasis.opendocument.presentation
        [ods] => application/vnd.oasis.opendocument.spreadsheet
        [odg] => application/vnd.oasis.opendocument.graphics
        [odc] => application/vnd.oasis.opendocument.chart
        [odb] => application/vnd.oasis.opendocument.database
        [odf] => application/vnd.oasis.opendocument.formula
        [wp|wpd] => application/wordperfect
        [key] => application/vnd.apple.keynote
        [numbers] => application/vnd.apple.numbers
        [pages] => application/vnd.apple.pages
    )
    Plugin Author bradvin

    (@bradvin)

    Hi

    I have made some changes and would like you to test the following version please:

    https://github.com/fooplugins/foogallery/archive/develop.zip

    Steps to follow:

    1) Deactivate and delete current version of FooGallery
    2) Download the zip from above link
    3) Upload and activate it in WP
    4) Goto FooGallery -> Settings and click the “Clear HTML Cache” button

    Let me know if that resolves your issues.

    thanks for your help

    I had exactly the same problem as mentioned above, and had to downgrade to 1.2.18 again which fixed the problem.
    Should I also install the temporary fix or just stick with 1.2.18 and wait for the next update?
    Thanks!

    Plugin Author bradvin

    (@bradvin)

    @oschmehr,

    It is up to you – I could not reproduce your issue locally no matter what I tried.
    If you can help me test the fixed version that would help, otherwise I will likely release the new version in a day or 2 after I get more people to help test that it works.

    thanks

    @bradvin

    I just installed your temporary test version – no problems so far, seems to do the job!

    Here’s my system dump (after installing your fix), maybe it helps:

    FooGallery version : 1.2.19
    WordPress version : 4.7.4
    Activated Theme : Nirvana
    WordPress URL : https://gtgs.info
    PHP version : 7.1.1-nmm1
    PHP GD Loaded : 2
    Extensions Endpoint : https://raw.githubusercontent.com/fooplugins/foogallery-extensions/master/extensions.json
    Extensions Errors : Nope, all good
    Extensions :
    Extensions Active : Array
    (
    [0] => default_templates
    [1] => foogallery-owl-carousel-template
    [2] => foobox-image-lightbox
    [3] => polaroid_template
    )

    Gallery Templates : Array
    (
    [0] => default
    [1] => image-viewer
    [2] => justified
    [3] => masonry
    [4] => simple_portfolio
    [5] => thumbnail
    [6] => polaroid
    )

    Lightboxes : Array
    (
    [foobox-free] => FooBox Free
    )

    Settings : Array
    (
    [gallery_template] => justified
    [gallery_sorting] =>
    [default_gallery_settings] => 2109
    [caption_title_source] => caption
    [caption_desc_source] => desc
    [thumb_jpeg_quality] => 80
    [language_images_count_none_text] => Kein Foto
    [language_images_count_single_text] => 1 Foto
    [language_images_count_plural_text] => %s Fotos
    [default_retina_support] => Array
    (
    [2x] => false
    [3x] => false
    [4x] => false
    )

    )

    Active Plugins : Array
    (
    [0] => add-category-to-pages/add-category-to-page.php
    [1] => all-in-one-event-calendar-extended-views/all-in-one-event-calendar-extended-views.php
    [2] => all-in-one-event-calendar/all-in-one-event-calendar.php
    [3] => all-in-one-seo-pack/all_in_one_seo_pack.php
    [4] => antispam-bee/antispam_bee.php
    [5] => black-studio-tinymce-widget/black-studio-tinymce-widget.php
    [6] => browser-theme-color/browser-theme-color.php
    [7] => contact-form-7/wp-contact-form-7.php
    [8] => cryout-theme-settings/cryout-theme-settings.php
    [9] => email-obfuscate-shortcode/email-obfuscate-shortcode.php
    [10] => enable-media-replace/enable-media-replace.php
    [11] => flamingo/flamingo.php
    [12] => foobox-image-lightbox/foobox-free.php
    [13] => foogallery-develop/foogallery.php
    [14] => foogallery-polaroid-template-master/foogallery-polaroid-template.php
    [15] => gwolle-gb/gwolle-gb.php
    [16] => kama-wp-smile/kama_wp_smiles.php
    [17] => ps-auto-sitemap/ps_auto_sitemap.php
    [18] => regenerate-thumbnails/regenerate-thumbnails.php
    [19] => responsive-scrolling-tables/responsivescrollingtables.php
    [20] => shariff/shariff.php
    [21] => shortcodes-ultimate/shortcodes-ultimate.php
    [22] => shortpixel-image-optimiser/wp-shortpixel.php
    [23] => social-media-auto-publish/social-media-auto-publish.php
    [24] => tinymce-advanced/tinymce-advanced.php
    [25] => updraftplus/updraftplus.php
    [26] => wp-ajaxify-comments/wp-ajaxify-comments.php
    [27] => wp-fastest-cache-premium/wpFastestCachePremium.php
    [28] => wp-fastest-cache/wpFastestCache.php
    [29] => wp-piwik/wp-piwik.php
    )

    Server Mime Types : Array
    (
    [jpg|jpeg|jpe] => image/jpeg
    [gif] => image/gif
    [png] => image/png
    [bmp] => image/bmp
    [tiff|tif] => image/tiff
    [ico] => image/x-icon
    [asf|asx] => video/x-ms-asf
    [wmv] => video/x-ms-wmv
    [wmx] => video/x-ms-wmx
    [wm] => video/x-ms-wm
    [avi] => video/avi
    [divx] => video/divx
    [flv] => video/x-flv
    [mov|qt] => video/quicktime
    [mpeg|mpg|mpe] => video/mpeg
    [mp4|m4v] => video/mp4
    [ogv] => video/ogg
    [webm] => video/webm
    [mkv] => video/x-matroska
    [3gp|3gpp] => video/3gpp
    [3g2|3gp2] => video/3gpp2
    [txt|asc|c|cc|h|srt] => text/plain
    [csv] => text/csv
    [tsv] => text/tab-separated-values
    [ics] => text/calendar
    [rtx] => text/richtext
    [css] => text/css
    [htm|html] => text/html
    [vtt] => text/vtt
    [dfxp] => application/ttaf+xml
    [mp3|m4a|m4b] => audio/mpeg
    [ra|ram] => audio/x-realaudio
    [wav] => audio/wav
    [ogg|oga] => audio/ogg
    [mid|midi] => audio/midi
    [wma] => audio/x-ms-wma
    [wax] => audio/x-ms-wax
    [mka] => audio/x-matroska
    [rtf] => application/rtf
    [js] => application/javascript
    [pdf] => application/pdf
    [swf] => application/x-shockwave-flash
    [class] => application/java
    [tar] => application/x-tar
    [zip] => application/zip
    [gz|gzip] => application/x-gzip
    [rar] => application/rar
    [7z] => application/x-7z-compressed
    [exe] => application/x-msdownload
    [psd] => application/octet-stream
    [xcf] => application/octet-stream
    [doc] => application/msword
    [pot|pps|ppt] => application/vnd.ms-powerpoint
    [wri] => application/vnd.ms-write
    [xla|xls|xlt|xlw] => application/vnd.ms-excel
    [mdb] => application/vnd.ms-access
    [mpp] => application/vnd.ms-project
    [docx] => application/vnd.openxmlformats-officedocument.wordprocessingml.document
    [docm] => application/vnd.ms-word.document.macroEnabled.12
    [dotx] => application/vnd.openxmlformats-officedocument.wordprocessingml.template
    [dotm] => application/vnd.ms-word.template.macroEnabled.12
    [xlsx] => application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    [xlsm] => application/vnd.ms-excel.sheet.macroEnabled.12
    [xlsb] => application/vnd.ms-excel.sheet.binary.macroEnabled.12
    [xltx] => application/vnd.openxmlformats-officedocument.spreadsheetml.template
    [xltm] => application/vnd.ms-excel.template.macroEnabled.12
    [xlam] => application/vnd.ms-excel.addin.macroEnabled.12
    [pptx] => application/vnd.openxmlformats-officedocument.presentationml.presentation
    [pptm] => application/vnd.ms-powerpoint.presentation.macroEnabled.12
    [ppsx] => application/vnd.openxmlformats-officedocument.presentationml.slideshow
    [ppsm] => application/vnd.ms-powerpoint.slideshow.macroEnabled.12
    [potx] => application/vnd.openxmlformats-officedocument.presentationml.template
    [potm] => application/vnd.ms-powerpoint.template.macroEnabled.12
    [ppam] => application/vnd.ms-powerpoint.addin.macroEnabled.12
    [sldx] => application/vnd.openxmlformats-officedocument.presentationml.slide
    [sldm] => application/vnd.ms-powerpoint.slide.macroEnabled.12
    [onetoc|onetoc2|onetmp|onepkg] => application/onenote
    [oxps] => application/oxps
    [xps] => application/vnd.ms-xpsdocument
    [odt] => application/vnd.oasis.opendocument.text
    [odp] => application/vnd.oasis.opendocument.presentation
    [ods] => application/vnd.oasis.opendocument.spreadsheet
    [odg] => application/vnd.oasis.opendocument.graphics
    [odc] => application/vnd.oasis.opendocument.chart
    [odb] => application/vnd.oasis.opendocument.database
    [odf] => application/vnd.oasis.opendocument.formula
    [wp|wpd] => application/wordperfect
    [key] => application/vnd.apple.keynote
    [numbers] => application/vnd.apple.numbers
    [pages] => application/vnd.apple.pages
    )

    Plugin Author bradvin

    (@bradvin)

    This has been released with v1.2.20

    Thanks for all the help in testing everyone

    Foogallery shows an update to 1.2.20 in WP, but when updating it only installs 1.2.19 (with bug) again. Update Notification is always coming back.
    BTW same with Foobox!

    Strange! I installed your developer version (link above) again, which now shows up as 1.2.20. After that i could also successfully upgrade Foobox.

    Nah… Foobox update notification coming back again. Any install attempt seems to be successfull, but it only installs 1.2.24.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Getting warning with gallery’ is closed to new replies.