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 on 3.3 - unexpected T_IS_IDENTICAL in dynamic-gallery-plugin.php on line 307
Status: open
September 14, 2010
4:36 pm
forefront
Guest

Wordpress version 3.01

I just upgraded to the 3.3 version of the plugin and received an error:

Plugin could not be activated because it triggered a fatal error.

Parse error: syntax error, unexpected T_IS_IDENTICAL in /home/foo/public_html/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery-plugin.php on line 307

September 14, 2010
4:46 pm
jabanero
Guest

I am experiencing the same error. -help-

September 14, 2010
4:55 pm
jabanero
Guest

Parse error: syntax error, unexpected T_IS_IDENTICAL in /home/content/79/6710279/html/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery-plugin.php on line 307

September 14, 2010
4:56 pm
JohnLovell
Guest

The dynamic-gallery-plugin.php is corrupt.

Line 307 is the culprit.

306 add_filter( 'plugin_action_links', 'dfcg_filter_plugin_actions', 10, 2 );
307 =======
<?php
/*

I'm trying to see if I can fix it locally.

September 14, 2010
4:57 pm
Tommy
Guest

YES! I was experiencing the same error on http://rockbandaide.com. It blew up the site. I tried rolling back to a previous version and now the content won't load.

PLEASE ADVISE/FIX!!!

September 14, 2010
5:08 pm
FamousInternetSkiers
Guest

JohnLovell said:

The dynamic-gallery-plugin.php is corrupt.

Line 307 is the culprit.

306 add_filter( 'plugin_action_links', 'dfcg_filter_plugin_actions', 10, 2 );
307 =======
<?php
/*

I'm trying to see if I can fix it locally.

I'm no php expert, and have no idea what the architecture of this code is… but it looks as simple as an open php code block which started on line 2.

Can we just close the php code block with a '?>' ??

Probably not… I'm such a code hack though… that's the best I can think of. Seems like this might ultimately be a pretty easy fix for the dev.

September 14, 2010
5:16 pm
JohnLovell
Guest

I've changed my local copy and got it to activate, however, it still does not work.

It looks like there was a unresolved subversion conflict on this file.

I am not the developer for this project, I'm just a developer that uses this awesome plug-in and I need to get it fixed for my client site. I will keep you updated with my unofficial progress. PLEASE: do not edit your local files unless you are completely comfortable with messing up your entire site :)

After further investigation, it appears that more source files may have subversion conflict messages and duplicated code.

IMHO I recommend deactivating this plug-in until the developer can make a fix available.

It may be possible to downgrade to the previous version, but I am unable to find it available on this website.

Good luck and I hope to hear from Abe soon with a fix.

Thanks Abe for a great plug-in.

September 14, 2010
5:41 pm
Rigger82
Guest

Same boat. Saw the upgrade was available and did it then got the same line 307 error. Cant get to any page so Im resorting to pulling it out via FTP.

Hopefully we get some resolution quickly.

September 14, 2010
5:54 pm
greatpatton
Guest

Same problem here! It seems that the whole file is corrupted so there is no easy fix…

September 14, 2010
5:55 pm
FamousInternetSkiers
Guest
10

JohnLovell said:

It may be possible to downgrade to the previous version, but I am unable to find it available on this website.

Just an FYI, the previous version is available through Wordpress' site here:

http://wordpress.org/extend/plugins/dynamic-conten…../download/

(download 3.2.3)

September 14, 2010
6:03 pm
Rigger82
Guest
11

FamousInternetSkiers said:

JohnLovell said:

It may be possible to downgrade to the previous version, but I am unable to find it available on this website.

Just an FYI, the previous version is available through Wordpress' site here:

http://wordpress.org/extend/plugins/dynamic-conten…../download/

(download 3.2.3)

Thanks, put 3.2.3 back in and Im up and running. Will keep an eye out here for fix to upgrade.

September 14, 2010
6:06 pm
maryjo
Guest
12

I tried removing plug in and it returns an error. Tried installing the previous version and still gets an error.

It seems that I'm stuck with the problem until there's a fix. Thank goodness I only upgraded on one site.

September 14, 2010
7:28 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
13

Hi all,

Apologies for this!

There was a glitch when I was updating the Wordpress Repository and the offending version of the dynamic-gallery.php was uplaoded in error. Anyway, all is fixed, so you can re-download and re-install and all should be fine.

Thanks!

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
September 14, 2010
8:22 pm
maryjo
Guest
14

I didn't see a new version. I'm unable to download 3.3 as it is already installed, and I'm unable to delete because of the syntax error (line 27).

September 14, 2010
9:08 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
15

Go to Dashboard>Plugins>Add New, then enter Dynamic Content Gallery in the search box. You can then do the install from there.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
September 14, 2010
9:12 pm
maryjo
Guest
16

I know how to install the plug in, and went through those steps. It won't allow me to install because I already have 3.3 installed. If there is a new version, perhaps it's not yet showing up? Or, if you've kept the 3.3 version, since I'm unable to uninstall it, I can't reinstall it.

September 14, 2010
9:22 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
17

You're right, it doesn't.

Best option is to use FTP. Download 3.3 from the wordpress.org site, unzip it on your PC, then use FTP to delete the existing dynamic-content-gallery-plugin folder from your plugins folder, and replace it with the fresh one.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
September 14, 2010
9:26 pm
maryjo
Guest
18

I don't have that option. So where does that leave me?

September 14, 2010
9:38 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
19

How can you not have an FTP option? How do you upload themes etc?

Your alternative is to use phpmyadmin (via your hosting) to change the DCG version info in the wp_options table. If you have never used phpmyadmin I don't recommend this option.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
September 14, 2010
9:45 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
20

I forgot your other option (assuming your server file permissions allow it).

Go to the plugin editor and browse to the file dynamic-gallery.php and replace the ENTIRE contents of that file, with this:

<?php
/**
* Front-end – This is the main file used to display the gallery
*
* @copyright Copyright 2008-2010 Ade WALKER (email : info@studiograsshopper.ch)
* @package dynamic_content_gallery
* @version 3.3
*
* NOTE: This file was updated due to change from Pages Method to ID Method in v3.3
*
* This is the file that displays the gallery, called by dynamic_content_gallery()
* template tag function.
*
* This file is included by dynamic_content_gallery() in dfcg-gallery-core.php
* therefore local scope applies to variables here – unless global in dynamic_content_gallery()
*
* Note: the name of this file is preserved because some users will still be using the
* old method of calling the plugin (now replaced with template tag)
*
* 4 methods of populating the gallery as per Settings:
* - Multi Option
* - One Category
* - ID Method
* - Custom Post type Method – added in v3.3
* Plus 2 script options for each gallery method
*
* @since 3.0
* @updated 3.3
*/

/* Prevent direct access to this file */
if (!defined('ABSPATH')) {
exit(__( "Sorry, you are not allowed to access this file directly.", DFCG_DOMAIN ));
}

/* Determine which scripts are being loaded */
if( $dfcg_options['scripts'] == 'mootools' ) {

if($dfcg_options['populate-method'] == 'multi-option' ) {
// Populate method = MULTI-OPTION
dfcg_multioption_method_gallery();

} elseif( $dfcg_options['populate-method'] == 'one-category' || $dfcg_options['populate-method'] == 'custom-post' ) {
// Populate method = ONE CATEGORY or CUSTOM POST TYPE
dfcg_onecategory_method_gallery();

} elseif($dfcg_options['populate-method'] == 'id-method' ) {
// Populate method = ID METHOD
dfcg_id_method_gallery();
}

} elseif( $dfcg_options['scripts'] == 'jquery' ) {

if($dfcg_options['populate-method'] == 'multi-option' ) {
// Populate method = MULTI-OPTION
dfcg_jq_multioption_method_gallery();

} elseif($dfcg_options['populate-method'] == 'one-category' || $dfcg_options['populate-method'] == 'custom-post' ) {
// Populate method = ONE CATEGORY or CUSTOM POST TYPE
dfcg_jq_onecategory_method_gallery();

} elseif($dfcg_options['populate-method'] == 'id-method' ) {
// Populate method = PAGES
dfcg_jq_id_method_gallery();
}

/* Something has gone horribly wrong and there's no output! */
} else {

$output = '';
$output .= $dfcg_errmsgs['public'];
$output .= "\n" . $dfcg_errmsgs['10'] . "\n";
echo $output;
}
?>

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
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)