Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Images in posts not enlarging
Avatar
max99
Member
Free Members
Offline
May 28, 2013 - 8:09 am

Yes, I changed it back b/c (a) you said you needed to see the entire code incl. if statmenet (see above) and (b) it didn't fix the issue. None of my attachments can be opened.

 

Removed W3 chache but didn't help. Plus, I've excluded any forum pages from being cached anyway. Either way, with and w/out w3tc didn't let me open attachments.

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
May 28, 2013 - 8:41 am

So taking a quick look at your forum page....

Your WP Theme is now no longer loading any jQuery library at all. This is not really good as everything starts with the WP theme and if that needs jQuery it should load it. This is causing a 'jQuery not defined' error.

There is still a version being loaded from the Google CDN by a plugin which is NOT good.

Your WP theme actually has other issues I believe as well. It addresses jQuery using the '$' shortcut but not in a way that is supported by WordPress.This is causing a '$ not defined' error.

These are all issues, by the way, that the WordPress development team are trying to stamp out and they have even talked about having the WP core refuse to function with these badly constructed themes.

Additionally can I ask how you are embedding the links to these documents or images. All I see are links to doc.google.com but those links are malformed so how are you entering them please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
max99
Member
Free Members
Offline
May 28, 2013 - 10:07 am

I'm not sure I follow. I thought you had told me to remove the jquery call from my WP Theme? And re: the google CDN call, as I said, I deactivated the entire plugin (plus w3tc) and still no change to the image issue.

 

Re: the links. One was simply a URL link to an image hosted somewhere else. It did enlarge correctly during preview. The other two links are files attached by a forum user.

 

Can I just give you my wp-login via PM? I really just want to be able to use the forum. It's been 3 days now and such a basic feature is not working. I know you're saying it's my theme, I just don't know what else to do here.

 

Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
May 28, 2013 - 11:13 am

No, we never said get rid of jquery... we said get rid of the externally loaded version and use the one that comes with wp, like the wp standards call for...

as I view your site right now, its loading jquery from googlapis and still getting a cached page...

today is a tough day for us time wise... 

but we really need to see the site without our page being cached and the jquery from external sites removed in favor of loading the wp version (wp_enqueue_script())...

Avatar
max99
Member
Free Members
Offline
May 28, 2013 - 11:42 am

Hmm, I thought I was supposed to remove the outdated 1.5.2 version.

On the page caching, I actually did disable it, I have the exact same settings as this guy:

http://www.byobwebsite.com/for.....he-or-not/

Page caching disabled for all forum pages. Some static files are served via cdn, but nothing's cached.

 

I'm really not sure what to do anymore from here on. Can you tell me the correct code I should place now that I've copy/pasted the full code including the if statement?

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
May 28, 2013 - 4:07 pm

copy and pasted full?  where?

did you make the changes I suggested a few posts back in #18

Avatar
max99
Member
Free Members
Offline
May 28, 2013 - 4:57 pm

Yes I did, I even removed the plugin completely. That didnt fix the image enlarging issue

 

Here's the complete code for jquery in the plugin:

 

// jQuery UI - need to load jquery UI via CDN so deregister all wordpress jquery ui scripts that may conflict

wp_enqueue_script('jqueryUI', $protocol . '//ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js');

wp_enqueue_script('jqueryUIWidget', HYBRIDCONNECT_JS_PATH . '/jquery.ui.widget.js');

wp_enqueue_script('jqueryUICheckbox', HYBRIDCONNECT_JS_PATH . '/jquery.ui.checkbox.js');

 

 

AND:

function frontend_register_scripts() {

$protocol = 'http:';

if (!empty($_SERVER['HTTPS'])) {

$protocol = 'https:';

}

wp_register_style('hybridconnectreset', HYBRIDCONNECT_CSS_PATH_TEMPLATES . '/problem-with-post-edit-buttonc_reset.css');

wp_enqueue_style('hybridconnectreset');

// handle problem themes. Some themes extend jQuery so loading a new version of jquery breaks the site.

if(wp_get_theme() == "Netix - Premium WordPress Landing Page" ||

is_plugin_active('slidedeck2-personal/slidedeck2.php') ||

is_plugin_active('slidedeck2/slidedeck2-lite.php') ||

is_plugin_active('slidedeck2-professional/slidedeck2-tier20.php') ||

is_plugin_active('slidedeck2-developer/slidedeck2-tier30.php')) {

wp_enqueue_script('jquery');

}

else {

wp_deregister_script('jquery');

wp_register_script('jquery', $protocol . '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');

wp_enqueue_script('jquery');

}

}

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
May 28, 2013 - 11:07 pm

plugin?  for some reason thought this was in the theme...  but too many topics going on... ;)

what is this plugin used for?  does it actually do anything on the forum page?  if not, you could just use the plugin organizer (a wp plugin) and disable it on the forum page...

okay, based on the code you pasted, that sure looks like a theme... at the risk of angering you, can I ask you to confirm that its a plugin??

Avatar
max99
Member
Free Members
Offline
May 29, 2013 - 8:31 am

No risk of angering me at all, I appreciate you looking into it closely :)

It is a plugin, Hybrid-Connect (slide-in opt in form). It is actually currently disabled. And I'll be sure to use the plugin you suggested to not have it run on the forum pages.

 

I do have a way bigger problem right now though. Upon trying to log on to wp, I get this error (one of them related to simple press, 2nd to last):

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'sp_plupload_localization' not found or invalid function name in /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php on line 406

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-login.php on line368

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-login.php on line380

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/pluggable.php on line 680

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/pluggable.php on line 681

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/pluggable.php on line 682

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-content/plugins/simple-press/sp-startup/site/credentials/sp-credentials.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/plugin.php:406) in /problem-with-post-edit-buttonome/exceller/public_html/wp-includes/pluggable.php on line 876

 

LINE 406 is bolded below:

 

if ( !isset( $merged_filters[ $tag ] ) ) {

ksort($wp_filter[$tag]); $merged_filters[ $tag ] = true; } reset( $wp_filter[ $tag ] );

do { foreach ( (array) current($wp_filter[$tag]) as $the_ )

if ( !is_null($the_['function']) )

call_user_func_array($the_['function'], array_slice($args, 0,

(int) $the_['accepted_args'])); }

while ( next($wp_filter[$tag]) !== false );

array_pop($wp_current_filter);

 

 

Avatar
max99
Member
Free Members
Offline
May 29, 2013 - 9:38 am

Ok, that error has been fixed (my host vps.net made some changes). So now I turned everything off, w3tc and this other hybrid connect plugin.

 

Can you please check the forum page source code and let me know if jquery is being loaded correctly or if I'm missing something there (remember I removed the code to call the 1.5.2 version via the theme's header.php file).

The enlarging/downloading of the images still doesn't work.

 

Thanks for your patience.

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625