-
AuthorPosts
-
January 13, 2014 at 3:22 pm #208974
While trying to get to work with Enfold and WPML. I’m running into quite some problems.
At first I thought the problem was in WPML but now the WPML supports starts pointing at kriesi:
http://wpml.org/forums/topic/404-after-switching-languages/page/2/#post-320149
My problem: I bought a theme (enfold) and a Plugin (WPML) which both claim to be compatible with each other and it just does not work.
I would realy apreciate some help.
The latest problem is the javoscrip error :
January 13, 2014 at 4:03 pm #208999Hi erikwillems!
Can you post the link to your website? And please try deactivating all active plugins except for WPML and check if that helps
Cheers!
YigitJanuary 13, 2014 at 4:09 pm #209002hi yigit,
I’ll send you a private reply, with a username and password. so you can log in.I’ve a plugin (indot under) with a countdown timer active.
you need to add your ip to the white list, because if you dont you wont be able to see the website.rgds erik
January 13, 2014 at 4:11 pm #209004This reply has been marked as private.January 13, 2014 at 7:01 pm #209113Hey!
In your last post you wrote “I don’t know what happend, but now I can’t even load the temes page from the WP main menu. The screen goes totaly white.” – that’s probably a memory issue. Please try to increase the allocated php memory to 128M: http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
and add following code to the wp-config.php file
define( 'WP_MEMORY_LIMIT', '128M' );
Cheers!
PeterJanuary 13, 2014 at 7:32 pm #209123Hey,
Thanks for thinking along. That did not do the trick, I assumed it would not, but tried it anyway.
I only can have 64 from my host. OK I use 88% of it, but are you sure that is the problem?
thanks, Erik
January 13, 2014 at 7:39 pm #209125Hi!
I’m not sure but it can be even if you use “just” 88% of the memory because it’s an average value and does not take care of “peaks”. You can try to activate the debug mode: http://codex.wordpress.org/Editing_wp-config.php#Debug (insert the code in the wp-config.php) and then check if WP outputs an error message. You can also try to re-install all theme/plugin files – maybe one or more files are corrupt. You can try to deactivate all other third party plugins. This will reduce the memory usage and you can be sure it’s not a third party plugin conflict.
Best regards,
PeterJanuary 13, 2014 at 8:16 pm #209139Hi!
I added the line of code to the wp-config and it did not change a thing for me. I’m not into coding and I don’t want to be into that to be honest.Disabeling all plugins, did not make the page themes reachable again.
I spend some money on a theme and a plugin that are supposed to be compatible, and now I’m already spending way to much time to make it work.
I’m new to buying themes and plugins, but if “compatible” means so much work, than I’m not sure I totaly understand the word compatible :-)
I expected that both plugins would easily work together on a fresh new install of wordpress.
Is that too much to expect?
Regards, erik
January 13, 2014 at 9:12 pm #209171Hi!
I looked into the wp-config.php and found that the debug cod was in there twice. once with value true and one with false.
I only kept one with value true and now I got an error code when I tried to load the themes page.
This is the error code :
Fatal error: Cannot use object of type WP_Error as array in /usr/home/lmscar124/www/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php on line 344Please advise what to do.
rgds, Erik
January 14, 2014 at 12:32 pm #209416Hey!
Please try following fix – open up wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php and replace
$data = json_decode( $request['body'] );
with
if(is_wp_error($data)) return false; $data = json_decode( $request['body'] );
We’ll add this if check to the next theme update if the fix works for you.
Regards,
PeterJanuary 15, 2014 at 9:49 am #209946Hey Peter,
That did not do the trick.
I got a new error note after appliing the code you suggested.
Notice: Undefined variable: data in /usr/home/lmscar124/www/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php on line 344
Fatal error: Cannot use object of type WP_Error as array in /usr/home/lmscar124/www/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php on line 345
What I’ll do. I’ll be moving to a new server with more php memory 128M, and start with a clean install of WP, Enfold and WPML. And pray that it will work.
January 16, 2014 at 9:52 am #210582Hey!
This is not an incompatibilty issue but a problem of the envato theme update api. You can try two things:
1) Update the api file to the latest version – the code can be found here: https://github.com/envato/envato-wordpress-toolkit/blob/master/includes/class-envato-api.php – just delete the code in wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php and insert the updated code. I’m not sure if it will work though (I can’t test it).
2) Deactivate the update api – insert following code into the child or parent theme functions.php file – i.e. insert it at the very bottom of the file
add_theme_support('avia_manual_updates_only');
Cheers!
Peter -
AuthorPosts
- The topic ‘java script error’ is closed to new replies.