Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

One Category option – wont stay set

awaiting user
UserPost

7:40 pm
February 1, 2010


Gil Namur

Member

posts 26

1

Hi Ade,

We launched our site last night and I ran into a strange problem with DCG.

We are using the One Category option. When we added our new content, I changed the category selection to the Feature category. On clicking save changes, it reverted to the "Spirituality and Religion" category (one of many).

As a test, I unpublished the "Spirituality and Religion" article and tried again to change to featured. On clicking save changes, it reverted to the "All" category.

I got around it by using the multi option setting which worked fine. As you know I have been using your plugin at 3 sites and never seen this.

The only thing that is different is that were doing this in maintenance mode. Also, I note that you mention plugin conflicts with contact form 7 but we are running that at the other sites as well.

Every heard of this? I have not upgraded yet .. been pretty busy!

Thanks in advance for any ideas.

Cheers.

Gil

P.S. I hope I posted this in the right place!

8:03 pm
February 1, 2010


Ade

Admin

posts 1233

2

Hi Gil,

Yep, this is the right place to post.

No, I haven't come across this problem with v3.1. Javascript conflicts would affect the display of teh gallery, not the saving of options.

I'm tempted to suggest that you upgrade to 3.2.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

8:08 pm
February 1, 2010


Gil Namur

Member

posts 26

3

Hi Ade,

Thanks for the quick reply.

Ok will try the upgrade at the test site. I have a few other bugs I need to deal with first (WP not you)

Will let you know in the next few days how I make out

Cheers,

Gil

8:32 pm
February 1, 2010


Ade

Admin

posts 1233

4

Ok, fingers crossed! Smile

Keep me posted.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

11:30 pm
February 2, 2010


nerby

Member

posts 8

5

Hi Ade,

We have a similar problem although it’s the multi option as opposed to the one category option, so I hope you don’t mind me posting in this thread. Since tweaking the settings (add custom field columns) after upgrading to version 3.2, all the categories reverted to the first category from the previously set featured category and will not change back (will change to any category other than “featured”). From trying to resolve this issue, it only appears to affect a category (old, changed or new) with the word featured in the slug/name.

No error generated in the error log.

CentOS 5

WordPress Version: 2.9.1

Dynamic Content Gallery plugin Version: 3.2

12:33 am
February 3, 2010


Ade

Admin

posts 1233

6

Hi,

Which version did you upgrade from? v3.1?

Do you have phpmyadmin access? If so, use it to browse to your wp_options table, look for the dfcg_plugin_settings entry and post here the value shown. (This will help me to debug).

Also, are you on WP or WPMU?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:01 am
February 3, 2010


nerby

Member

posts 8

7

Post edited 2:22 am – February 3, 2010 by Ade


WP and I believe v3.1 (v3.2 was the first to amend the db – if that helps)

Heres what you requested (URL structure has been manually edited /*REMOVED*/ – PM if you need it)

Details removed by Admin

As I said no error regarding categories is outputted, although the plugin does generate an unrelated(?) error notice when a new post is published (since upgrade). 

PHP Warning: call_user_func_array() [<a href='function.call-user-func-array'>function.call-user-func-array</a>]: First argument is expected to be a valid callback, 'dfcg_save_metabox_data' was given in ../wp-includes/plugin.php on line 339 which is: call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args']));

1:39 am
February 3, 2010


Ade

Admin

posts 1233

8

Thanks for that. I'm looking into it now.

SIlly question, perhaps, but I have to ask: do you have any posts assigned to your "featured" category?

Also, what exactly do you have in the multi-option settings for each image slot? 

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:45 am
February 3, 2010


Ade

Admin

posts 1233

9

Also, what's the category ID of your featured category?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:56 am
February 3, 2010


nerby

Member

posts 8

10

Post edited 1:59 am – February 3, 2010 by nerby


There are 10 posts assigned to the featured category, since the problem we have enabled only 2 slots (previously set to 8 from the featured category):

Slot – 1st image

Category – Articles

Post Select – 2

Slot – 2nd image

Category – Articles

Post Select – 5

Default DCG image URL Root. 

Featured – cat_ID=16391

2:02 am
February 3, 2010


Ade

Admin

posts 1233

11

Post edited 2:08 am – February 3, 2010 by Ade


Ok, great. I've found the problem. Smile

I'll update the plugin, but here's a fix you can apply to get you up and running.

Open up includes/dfcg-admin-ui-sanitise.php, find line 343:

Change this (line 343):

$input[$key] = substr( $input[$key], 0, 4 );

to this:

$input[$key] = substr( $input[$key], 0, 6 );

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

2:16 am
February 3, 2010


nerby

Member

posts 8

12

Worked perfectly, many thanks for your support at this late hour. Keep up the great work! Smile

I will try to update you on the mentioned php warning when the next post is published.

2:18 am
February 3, 2010


Gil Namur

Member

posts 26

13

Yes .. Ade rocks!

Ade, do you think I have the same issue perhaps?

Have yet to upgrade .. we are getting huge traffic!

Cheers,

Gil

2:19 am
February 3, 2010


Ade

Admin

posts 1233

14

Post edited 2:19 am – February 3, 2010 by Ade


Hi Gil,

Yes, I'm sure it's the same problem on your site. Make the same change and all should be fine (fingers crossed etc, lol)

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

2:23 am
February 3, 2010


Ade

Admin

posts 1233

15

Post edited 2:50 am – February 3, 2010 by Ade


nerby said:

Worked perfectly, many thanks for your support at this late hour. Keep up the great work! Smile

I will try to update you on the mentioned php warning when the next post is published.


Great! The PHP error should disappear now, too. Smile

Edit: Actually – this is a separate bug due to a missing argument in the add_meta_box functions. It throws a PHP error but doesn't stop anything working. I'll fix this in a maintenance release tomorrow.

In the meantime, if you wish (it would also be a useful double-check for me), you can fix it by making two small changes to dfcg-admin-metaboxes.php:

Change line 34 from this:

add_meta_box( DFCG_FILE_HOOK . '_box', __( 'Dynamic Content Gallery', DFCG_DOMAIN ), 'dfcg_meta_box', 'page', 'side' );

to this:

add_meta_box( DFCG_FILE_HOOK . '_box', __( 'Dynamic Content Gallery', DFCG_DOMAIN ), 'dfcg_meta_box', 'page', 'side', 'low' );

And change line 38 from this:

add_meta_box( DFCG_FILE_HOOK . '_box', __( 'Dynamic Content Gallery', DFCG_DOMAIN ), 'dfcg_meta_box', 'post', 'side' );

to this:

add_meta_box( DFCG_FILE_HOOK . '_box', __( 'Dynamic Content Gallery', DFCG_DOMAIN ), 'dfcg_meta_box', 'post', 'side', 'low' );

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

2:23 am
February 3, 2010


Gil Namur

Member

posts 26

16

Or … I will wait for the upgrade/update LOL!

Thanks Ade!

Cheers,

Gil

2:24 am
February 3, 2010


Ade

Admin

posts 1233

17

Probably best to wait a day or too… Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

2:27 am
February 3, 2010


Gil Namur

Member

posts 26

18

Thats what I will do!

Talk soon!!

4:40 pm
February 3, 2010


nerby

Member

posts 8

19

Hey Ade,

I have only just seen your edit about the PHP warning, I will do the edits and let you know the result when the next post is published (4 hours time from now).

Thanks again!

8:01 pm
February 3, 2010


Ade

Admin

posts 1233

20

nerby said:

Hey Ade,

I have only just seen your edit about the PHP warning, I will do the edits and let you know the result when the next post is published (4 hours time from now).

Thanks again!


Ok, cool. Let me know how you get on. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?