Advertisement
firoze

Wordpress problem & solution

Dec 24th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.54 KB | None | 0 0
  1. // Setup a temporary folder for uploading and updating  if you face (stream_socket_client() [function.stream-socket-client]:) this problem then use this code into wp-config.php
  2. define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
  3.  
  4. <!------------------------------------------------------------------------------------------------------------------->
  5. //   Wordpress এ slug এর কাজ হল মুল site এর পরে যে অংশ থাকবে তাই হল slug এর অংশ
  6. যেমন http://localhost/wp/read-the-post/ এর মুল domain বা site হল http://localhost/wp/
  7. এবং read-the-post অংশই হল slug
  8. এমন করার জন্নে প্রথমে setting + permalink > post name  এ টিক দিয়া + save setting all এ click করতে হবে | wamp server থেকে apache থেকে apache modules থেকে rewrite_modules টিক mark করে দিতে হবে |
  9.  
  10. <!-------------------------------------------------------------------------------------------------------------------->
  11. // why we face [resolved] Notice: Trying to get property of non-object
  12.  
  13. Hi there, do you have debugging mode turned on for that site?
  14.  
  15. Check your wp-config.php - do you see a line like this?
  16.  
  17. define('WP_DEBUG', true);
  18.  
  19. Debugging notices shouldn't be active on live sites; they're meant for testing purposes only. Try turning debugging mode to off by setting it to false:
  20.  
  21. define('WP_DEBUG', false);
  22.  
  23. I'll report the error to the developers so it can be fixed in a future version. Thanks for the report!
  24. <!-------------------------------------------------------------------------------------------------------------------->
  25. // when we faceing this problem (Trying to get property of non-object in) this problem then use this code into wp-config.php
  26.  
  27. error_reporting(E_ERROR);
  28. <!---------------------------------------------------------------------------------------------------------------------->
  29. @h@ // if face problem in wordpress in online serverInvalid argument supplied for foreach()
  30.  
  31. - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
  32.  
  33. - switching to the Twenty Eleven theme to rule out any theme-specific problems.
  34.  
  35. - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
  36. <!---------------------------------------------------------------------------------------------------------------------->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement