onsecrethunt
Forum Replies Created
-
Hi @sanjuacharya77,
Thanks for your suggestion. I tried setting the permissions to 777, and it worked! The issue has been resolved.
Both directories have 755 permissions, but the images are not moving to the
\wp-content\uploads\user_registration_uploads\profile-pictures
directory. Please find this screen recording to understand the issue better.Hi @iovamihai
Thanks for the support, so I will manually add some selected users on my site.
The plugin name is Fixed TOC from codecanyon.
Yes, you are right. Table of content plugin is creating the issue. When I disabled the plugin it works. Thanks for the quick help.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs in Attachment adding ?post_type=attachmentThank you for the support John. I will do the same.
Solved, I was using the ghostery plugin.
Forum: Fixing WordPress
In reply to: Uploading ImagesFound another solution from this thread: Try adding the following to the top of your .htaccess file hope this solved the image upload problem:
<IfModule mod_security.c> <Files async-upload.php> SecFilterEngine Off SecFilterScanPOST Off </Files> </IfModule>
Forum: Fixing WordPress
In reply to: Uploading ImagesTypically, all files should be owned by your user (ftp) account on your web server, and should be writable by that account. On shared hosts, files should never be owned by the webserver process itself (sometimes this is www, or apache, or nobody user).
Any file that needs write access from WordPress should be owned or group-owned by the user account used by the WordPress (which may be different than the server account). For example, you may have a user account that lets you FTP files back and forth to your server, but your server itself may run using a separate user, in a separate usergroup, such as dhapache or nobody. If WordPress is running as the FTP account, that account needs to have write access, i.e., be the owner of the files, or belong to a group that has write access. In the latter case, that would mean permissions are set more permissively than default (for example, 775 rather than 755 for folders, and 664 instead of 644). Source, Source 2
This may help you: Try changing wp-content file permission to 777, and once you can upload image, change it back to 755. Source
If you still seeing the same issue, then you should contact Godaddy and ask them that your account is running under nobody user. As its a hosting issue, you can only play with file permission.
Forum: Fixing WordPress
In reply to: Image titles have dashes upon uploadThis link might help to create a ticket and report the issue to WordPress team.
Forum: Fixing WordPress
In reply to: Image titles have dashes upon uploadThanks for sharing the link and the code. I have modified the code to myself and the problem seems to be resolved with the below code:
add_action( 'add_attachment', 'ced_add_image_meta_data' ); function ced_add_image_meta_data( $attachment_ID ) { $filename = $_REQUEST['name']; // or get_post by ID $withoutExt = preg_replace('/\\.[^.\\s]{3,4}$/', '', $filename); $withoutExt = str_replace(array('-','_'), ' ', $withoutExt); $my_post = array( 'post_title' => $withoutExt, // title 'ID' => $attachment_ID, 'post_excerpt' => $withoutExt, // caption 'post_content' => $withoutExt, // description ); wp_update_post( $my_post ); // update alt text for post update_post_meta($attachment_ID, '_wp_attachment_image_alt', $withoutExt ); }
post_title
is the Image title name which replaces the dashes and small alphabets to the original file name.If you don’t need to auto add image file name in Alt and Description field remove the caption and description line from the above code. ??
Forum: Fixing WordPress
In reply to: Image titles have dashes upon uploadYes there’s a solution on how get the previous version, Add
define( 'WP_AUTO_UPDATE_CORE', false );
in wp-config.php file to prevent future auto update of WordPress.Now backup your site phpmyadmin database. Now go to your cpanel and find your WordPress files. [Do not delete] these files and folders wp-config.php, wp-content, .htaccess. Now select and backup the rest of the folders and files into a zip file in your cpanel root directory.
Now go and download wordpress previous version 4.6. Extract wordpress zip file on your local PC and delete wp-config.php, wp-content folder.
Select all the rest of the files and put it into a zip file then upload into your cpanel finally extract the wordpress .zip file into your wordpress site directory. Now load your site admin dashboard and you will see that you are using the previous version of WP.
Delete wordpress .zip file after you have done everything.
Forum: Fixing WordPress
In reply to: Uploading ImagesThat’s because PHP process is running under nobody user. Contact your host or coder to fix this issue on your server.
Theme header tag meta description
<?php if(is_tag() && !is_paged()):?>
<meta name=”description” content=”Your description here <?php single_cat_title(”); ?>”>
<?php endif;?>Theme header category meta description
<?php if(is_category() && !is_paged()):?>
<meta name=”description” content=”Your description here <?php single_cat_title(”); ?>”>
<?php endif;?><?php single_cat_title(”); ?> is the tag and category name.
Thanks for the support, I am using All in one SEO plugin that would helped me a lot to make the page nofollow.