Joms
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Missing dashboard itemsWhat is the role of the user that you are logged in as? Could it be that it’s not an administrator?
Forum: Fixing WordPress
In reply to: unable to access wp-admin after installationI suggest contacting your hosting provider for this first, since the “no data received” error is a browser error and not from WordPress.
You may also want to try a manual update: https://codex.wordpress.org/Updating_WordPress#Manual_Update
Forum: Fixing WordPress
In reply to: move my current wordpress site to the new one on the live internetYes you can just upload your wp-content directory.
To be able to import your content like posts and pages you will need to transfer your database as well.
I suggest using a plugin like WP Migrate DB to take care of the replacing of URL’s for you. Then import the db dump to your live site.
Forum: Fixing WordPress
In reply to: White screen after 4.4.2 update and image issues…How exactly did you perform the first update that caused the white screen? It’s weird that an update would remove all themes and plugins. Since your images are also not loaded I assume it also deleted the uploads folder. It seems to me that the ‘update’ was actually an install of WP that replaced your whole WordPress directory.
Forum: Fixing WordPress
In reply to: [The Loop] Put every 2 posts in a divThis is where you use a modulus operator. Your code should look something like this:
<div class="ef-slide"> <?php $recent_blog_posts = new WP_Query('posts_per_page=6'); if ($recent_blog_posts->have_posts()) : while ($recent_blog_posts->have_posts()) : $recent_blog_posts->the_post(); get_template_part( 'content' ); // if multiple of 2 close the .ef-slide div and open a new one if($i % 2 == 0) {echo '</div><div class="ef-slide">';} endwhile; else : echo "No Posts"; endif; ?> </div>Forum: Fixing WordPress
In reply to: Parse Error in functions.phpIt’s highly unlikely that WP will make file changes unless you or the theme coded it to do so. Do you still have the piece of code that you added?
Also, can you try downloading the functions.php file from your FTP and see if the code you added has really been removed? If the content is the same like what you posted then it might be referring to the functions.php file of your parent theme, so you can check that as well.
Forum: Fixing WordPress
In reply to: Limit dashboard access to one user onlyAny reason why you have to have multiple administrators rather than just assigning the other users to the “Editors” or “Authors” role? I assume that since they will only have access to the frontend of the website they can only manage content/posts.
You can then use:
function restrict_admin_with_redirect() { if ( ! current_user_can( 'manage_options' ) && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) { wp_redirect( site_url() ); exit; } } add_action( 'admin_init', 'restrict_admin_with_redirect', 1 );Taken from a sample code: https://codex.wordpress.org/Plugin_API/Action_Reference/admin_init
Forum: Fixing WordPress
In reply to: SlownessThe first step and easiest to fix is to check your WordPress installation. Make sure that your theme and plugins are not the ones causing the issue. I suggest activating a default WP theme and deactivating all plugins.
If the site works fine after that then start activating them one by one to find the culprit.
If it’s still slow, look onto your server hardware and software.
More info: https://codex.wordpress.org/WordPress_Optimization
Forum: Fixing WordPress
In reply to: Parse Error in functions.phpFirst make sure that the backup does not have the same problem and is being restored correctly i.e it uploads and replaces the problematic file.
There seems to be a problem with your opening and closing PHP tags:
<?phpand?>. Most common problem is missing a closing PHP tag and writing HTML next to it. Start looking for the problem around line 28 as stated by the error.Forum: Localhost Installs
In reply to: Could not create directory – Update Theme ProblemHi, since it’s a premium theme I suggest contacting the theme developers directly about your issue.
Most of the time the ‘Could not create directory’ error is a permission problem. But since you’re in a Windows environment the case must just be overwriting an already existing theme folder. It will probably require deleting your current theme and installing the new one instead. Make sure to do a backup first if you already have important data just to be on the safe side.
Forum: Plugins
In reply to: [Database Backup for WordPress] Mysterious InstallYes it is. It could be a vulnerable plugin or theme. In my case it was the older version of the “Attachments” plugin that’s bundled with a theme we use. I updated it manually and now the problem no longer occurs. Make sure that your plugins/themes are up to date.
Forum: Plugins
In reply to: [Database Backup for WordPress] Mysterious InstallThis is happening to one of our websites as well. Can you list the theme and plugins that you are using?
Forum: Plugins
In reply to: [cformsII] Admin email does not visually appear to be HTMLHere’s the actual content of my current lib_email.php file that fixes the problem: http://codepad.org/K9UzORC9. It’s the file from version 14.0 and the only line that changed is the class name. I’ve been using it for a couple of weeks now and all seems well.
But then again I’d rather have a solution for the new one. I would fix it myself but the code structure is a bit of a pain to debug 🙂 So in that regard I understand why the author does not have the time to fix it as well at the moment.
Goodluck
Forum: Plugins
In reply to: [cformsII] Admin email does not visually appear to be HTMLExactly.
Forum: Plugins
In reply to: [cformsII] Admin email does not visually appear to be HTMLSo another problem with Windows Live is that attached files won’t display. The first issue was somewhat okay since you can just unchecked “Enable HTML” and use plain text, but not being able to see attachments was a major problem for me.
I finally gave up on fixing it for now and decided to use the old lib_email.php file from the original plugin and renamed the class to “cforms2_mail”. Surprisingly it worked and fixed the issues I mentioned.
I’m not quite sure about the ramifications of doing this so I won’t recommend it for now as other parts of the plugin might break. I hope the author can give input regarding this. I’ll do further testing tomorrow.