I don’t see custom fields on gallery add/edit screen…

THIS PROBLEM IS FIXED AFTER VERSION 1.3 (January 9th, 2015)

This error occurs when you use an older PHP version like 5.2 on your server.

To see your php version you can use the following plugin;

Display PHP version Plugin

You can also see your PHP version from your Cpanel ( hosting control panel ).

If you have php knowledge, you can use the following function too;

Phpversion

To fix this issue, you should upgrade your PHP version to 5.3 or 5.4. If you don’t know how to do this, please contact your hosting provider.

Alternative way

If you can’t upgrade your PHP version, you can try to edit plugin files directly (It is not recommended. The best way is using a newer PHP version. If you don’t do this, you may have problems with other premium themes and plugins too. Also you should do the same thing after each plugin update….).

1) Go to Plugins->Editor

2) Select DV Gallery from the dropdown menu

3) Find the following code;

if ( file_exists(  __DIR__ .'/cmb2/init.php' ) ) {
	require_once  __DIR__ .'/cmb2/init.php';
} elseif ( file_exists(  __DIR__ .'/CMB2/init.php' ) ) {
	require_once  __DIR__ .'/CMB2/init.php';
}

4) Change it with the following code (Be very careful and don’t change any other code);

if ( file_exists(  dirname( __FILE__ ) .'/cmb2/init.php' ) ) {
	require_once  dirname( __FILE__ ) .'/cmb2/init.php';
} elseif ( file_exists(  dirname( __FILE__ ) .'/CMB2/init.php' ) ) {
	require_once  dirname( __FILE__ ) .'/CMB2/init.php';
}

5) Click “Update File” button

Screenshot_1