meraj.khattak
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Destroyed my Website while moving Subroot to RootPlease follow the following steps:
1. If you put a simple index.php which contains nothing but something like:
<?php echo "hello world!" ?>
See if that works. If that’s the case then your server is correctly rendering php.
2. It is possible that when copying your files to root it missed some files and now you are having this issue. One solution for this is to take backup of your current folder and database and go with a fresh installation and then see how it goes.
3. Check your database and make sure it is correctly set to root domain e.g. https://www.dentistryon7.com/
Forum: Fixing WordPress
In reply to: one specific permalink not workingYes. It is possible that a plugin / theme is already using this slug due to which it doesn’t let you use it as @jason King mentioned.
Forum: Fixing WordPress
In reply to: Destroyed my Website while moving Subroot to RootWhen I visit your site or wp-admi, it shows blank page.
Can you disable all plugins and then try to load your page.
Also create a backup of your existing .htacess and start with this basic .htacess file for WordPress:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
And then check. Thanks
Forum: Fixing WordPress
In reply to: Create permalinks to work in wordpressMake sure when you make changes to permalinks, they are reflected in .htaccess file as well. If they are not there then it will not work.
Forum: Fixing WordPress
In reply to: one specific permalink not workingCan you view the same page via preview?
Also try changing the perma link of this page to something e.g. gallery-new and then access it.
Please share the findings. Thanks
Forum: Fixing WordPress
In reply to: Destroyed my Website while moving Subroot to RootCan you share the error log?
Also share content of your .htaccess folder placed in your public_html folder.
Thanks.
Forum: Hacks
In reply to: wp-admin (dashboard) won't displayYes. This problem is solved by disabling this plugin of Google Analytics. The author should be contacted to look into this.
I also confirmed that this issue appear only on Avast and some other tools through which I scanned my site didn’t report this.
Forum: Themes and Templates
In reply to: Theme upgrade removes widget dataWhen upgrading a theme, make sure it doesn’t rename id of the existing widget(s) to save yourself from this issue.
Forum: Fixing WordPress
In reply to: Adding edit link to admin bar as sub menuFixed this issue by using $wp_query->get_queried_object(); as the following in my code:
/** * Add sub menu item to admin bar */ function custom_admin_bar_render() { global $wp_admin_bar; global $wp_query; $post_obj = $wp_query->get_queried_object(); $post_id = $post_obj->ID; if ( is_single() ) $wp_admin_bar->add_menu( array( 'id' => 'edit', //here define the name of parent under which this link is required to appear 'parent' => 'new-content', 'title' => __( 'Edit'), 'href' => get_edit_post_link($post_id) ) ); }
Hope this will help someone.
Forum: Fixing WordPress
In reply to: Warning: failed to open stream: no such file or directoryDo you get this error on every or any specific page you visit?
Also could you share what do you have on line wp-config.php? Because usually we don’t have this file uploads.php here at this path wp-content/uploads/uploads.php.
Forum: Fixing WordPress
In reply to: Missing temporary folder when uploading images, themes and pluginsAs Mark Wilkinson posting the exact error you get when try to upload media would help look into your problem further.
Forum: Fixing WordPress
In reply to: file_get_contents failureThese error seems to be coming from the plugin Nextgen Gallery. Did you check their support forum for these errors:
https://www.ads-software.com/support/plugin/nextgen-galleryForum: Fixing WordPress
In reply to: Can't get to login pageThis is very strange as other URLs on this site are working fine.
Could you share your .htaccess content here to see if it contains anything that may be causing this?
Forum: Fixing WordPress
In reply to: Help, can't login to wp-admin, getting HTTP500 errorYes. Deactivate the wp-socializer plugin and also ask your hosting provider to not display php code errors or notices but instead log them to a file.
Ideally a production server shouldn’t show such notices, it is not a good practice.
Forum: Fixing WordPress
In reply to: Help, can't login to wp-admin, getting HTTP500 errorApply the default theme or any other available theme. Remove this folder of Tempera theme and then try to upload.
If you don’t delete the existing Tempera folder, then it won’t let you upload it.