Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Dpphotosgd

    (@dpphotosgd)

    I am also seeing this same error when I try to select Gallery Settings

    Thread Starter Dpphotosgd

    (@dpphotosgd)

    Operating System : Linux (64 Bit)
    Server : Apache
    Memory usage : 50.52 MByte
    MYSQL Version : 5.5.34-log
    SQL Mode : Not set
    PHP Version : 5.3.27
    PHP Safe Mode : Off
    PHP Allow URL fopen : On
    PHP Memory Limit : 512
    PHP Max Upload Size : 128M
    PHP Max Post Size : 128M
    PCRE Backtracking Limit : 1000000
    PHP Max Script Execute Time : N/As
    PHP Exif support : Yes ( V1.4 )
    PHP IPTC support : Yes
    PHP XML support : Yes
    Graphic Library

    GD Version : bundled (2.1.0 compatible)
    FreeType Support : Yes
    FreeType Linkage : with freetype
    T1Lib Support : No
    GIF Read Support : Yes
    GIF Create Support : Yes
    JPEG Support : Yes
    PNG Support : Yes
    WBMP Support : Yes
    XPM Support : Yes
    XBM Support : Yes
    JIS-mapped Japanese Font Support : No

    Thread Starter Dpphotosgd

    (@dpphotosgd)

    I have disabled all plugins, no change
    Have disabled and enabled Nextgen , no change
    Have changed themes, no change

    Have added in over 600 images to nextgen, really do not want to start that process over agin.

    Donna

    Thread Starter Dpphotosgd

    (@dpphotosgd)

    I disabled the Nextgen Pro plugin and I do Not get the error

    Warning: Invalid argument supplied for foreach() in /home/dpphot5/public_html/new/wp-content/plugins/nextgen-gallery-pro/modules/nextgen_pro_albums/adapter.nextgen_pro_album_form.php on line 50

    Thread Starter Dpphotosgd

    (@dpphotosgd)

    Here is copy of the code from the file adapter.nextgen_pro_album_form.php

    <?php
    /*
     * This form is meant to be extended by each album type, it provides defaults for common settings
     */
    class A_NextGen_Pro_Album_Form extends Mixin_Display_Type_Form
    {
        /**
         * Enqueues static resources required by this form
         */
        function enqueue_static_resources()
        {
            wp_enqueue_script(
                'nextgen_pro_albums_settings_script',
                $this->object->get_static_url('photocrati-nextgen_pro_albums#settings.js'),
                array('jquery.nextgen_radio_toggle')
            );
    
    	$atp = $this->object->get_registry()->get_utility('I_Attach_To_Post_Controller');
    
    	if ($atp != null && $atp->has_method('mark_script')) {
    		$atp->mark_script('nextgen_pro_albums_settings_script');
    	}
        }
    
        /**
         * Returns a list of fields to render on the settings page
         */
        function _get_field_names()
        {
            return array(
                'thumbnail_override_settings',
                'nextgen_pro_albums_display_type',
                'nextgen_pro_albums_caption_color',
                'nextgen_pro_albums_caption_size',
                'nextgen_pro_albums_border_color',
                'nextgen_pro_albums_border_size',
                'nextgen_pro_albums_background_color',
                'nextgen_pro_albums_padding',
                'nextgen_pro_albums_spacing'
            );
        }
    
        /*
         * Let users choose which display type galleries inside albums use
         */
        function _render_nextgen_pro_albums_display_type_field($display_type)
        {
            $mapper = $this->object->get_registry()->get_utility('I_Display_Type_Mapper');
            $types = array();
            foreach ($mapper->find_by_entity_type('image') as $dt) {
                $types[$dt->name] = $dt->title;
            }
    
            return $this->_render_select_field(
                $display_type,
                'gallery_display_type',
                'Display galleries as',
                $types,
                $display_type->settings['gallery_display_type'],
                'How would you like galleries to be displayed?'
            );
        }
    
        function _render_nextgen_pro_albums_caption_color_field($display_type)
        {
            return $this->_render_color_field(
                $display_type,
                'caption_color',
                'Caption color',
                $display_type->settings['caption_color']
            );
        }
    
        function _render_nextgen_pro_albums_caption_size_field($display_type)
        {
            return $this->_render_number_field(
                $display_type,
                'caption_size',
                'Caption size',
                $display_type->settings['caption_size'],
                '',
                FALSE,
                '',
                0
            );

    [Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Contributor photocrati

    (@photocrati)

    @dpphotosgd – As this is related to your use of NextGEN Pro, please contact our support team directly via your member’s area at https://nextgen-gallery.com/

    Thanks!

    – Cais.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attach to Post Error Line 50’ is closed to new replies.