Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Fatal Error.....dfcg-widget.php on line 50
Status: fixed
October 7, 2010
9:59 pm
JW
Guest

Hello! I'm new to Word Press (3.0.1) and found Dynamic Content Gallery Version 3.3.2 yesterday.

I'm having a lot of trouble using this plugin.

I download it from PLUGINS –> ADD NEW –> and search for Dynamic Content Gallery.

It installs and I click ACTIVATE.

When I click on Widgets, I get the following page with this error:
Fatal error: Call to undefined function dynamic_content_gallery() in C:\xampp\htdocs\wordpress\wp-content\plugins\dynamic-content-gallery-plugin\includes\dfcg-widget.php on line 50

I have disabled, deleted, and reinstalled this plugin atleast 10 times today, and I still have the same issue.

Any suggestions?

Thank you in advance….

JW

October 7, 2010
10:01 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

That error message means that one of the plugin's files doesn't exist. If you haven't yet tried, reinstall the plugin manually via FTP.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 9, 2010
2:45 am
3icreative
Guest

I am having the same issue – The gallery looks good to users (http://www.hispanicprconference.com), but when I click the WIDGET link INSIDE the wordpress admin, I get the following error:

Fatal error: Call to undefined function dynamic_content_gallery() in /home/content/s/a/k/sakitak/html/hispanicprconference/wp-content/plugins/dynamic-content-gallery-plugin/includes/dfcg-widget.php on line 50

This means I cannot access the widget panel at all anymore.

I downloaded and FTP'd the newest version, so I do not think I am missing any files.

Any help GREATLY appreciated!

Thank you!

October 9, 2010
10:11 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

I can't reproduce the error here, so need more information.

First, check that you have a file called dfcg-gallery-core.php in the DCG's includes folder.

Did you get the error before or after dragging the DCG to the widget area in Dashboard>Widgets? Also, did the error occur before or after clicking the Save button in the DCG widget panel?

Next, try this: using FTP to edit the file, open up the main plugin file, dynamic-gallery-plugin.php and find this line:

include_once( DFCG_DIR . '/includes/dfcg-gallery-core.php');

and move it to immediately above this code:

// Front-end files
if( !is_admin() ) {

Let me know what happens.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
January 28, 2011
1:03 am
imwebgefunden
Guest

I have the same problem on a customer server. Here are the facts: PHP 5.2.5, WP 3.04, DCG 3.3.5. Your suggestion doesn't fix the problem – an other fatal error occurs. I've fixed the problem at all in the widget function in dfcg-widget.php with a wrpper around

$dfcg = dynamic_content_gallery()

. This will helps because the error occurs only on the widget-management-page of WP.
The code looks now:

// Display the DCG
if ( ! is_admin()) {
$dfcg = dynamic_content_gallery();
echo $dfcg;
}

It would be nice if you include this wrapper in the next official release.

With best regards
Thomas

Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: nloronacele
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)