ProjectArmy
Forum Replies Created
-
Forum: Plugins
In reply to: [Hatchbuck] Integration with Gravity Forms Clarification@ericjuden API doesn’t accept cookie yet. Even if there is a cookie to pass, we wouldn’t be able to pass it to Hatchbuck.
^V
- This reply was modified 9 years, 1 month ago by ProjectArmy.
Forum: Fixing WordPress
In reply to: Someone uploaded a malicious file to theme_compatIt’s hard to say how they were able to gain access to upload the file. Maybe WP core wasn’t up-to-date, maybe theme or plugin had a vulnerability that was exploited. Maybe the server wasn’t configured properly to allow someone to upload files. It’s hard to say.
You can try going through your access logs and see when was the first time this file was accessed. And then see what was accessed before that, maybe you’ll spot something.
But, I would scan entire server with Clamav to see if it catches anything. Especially, using some additional custom signatures found here:
https://github.com/extremeshok/clamav-unofficial-sigsVery rarely will you have one infected file. I don’t think I’ve even seen an incident where only one file was infected. The hacker must’ve left some backdoors sprinkled around throughout all files. If you downloaded WP files to your computer, you can try scanning them with your antivirus. Some might catch something. But, even better, using Clamwin (Clamav for Win) to scan those files and see how many infected files you really had.
In majority of cases it’s WordPress that let’s them in, not the hosting/server. So it’s important to secure WordPress as much as possible:
https://codex.wordpress.org/Hardening_WordPressAnd also have regular scans of all files on your server with Clamav. It’ll find those nasty buggers quickly if you do scans often, daily for example.
If you can share contents of the file in a pastebin, I can see if there are any existing signatures available that would detect it. Thanks.
^V
Forum: Fixing WordPress
In reply to: Cropped images get corruptedCan you disable image compression, re-upload clean image and try cropping it?
To disable compression, just add this to your theme’s functions.php file:
add_filter('jpeg_quality', function($arg){return 100;});Let me know if that helps or not.
^V
Forum: Fixing WordPress
In reply to: Header Image Cut OffHi Desiree,
For a quick fix, you can try this CSS snippet. You can either put it in your stylesheet or in the advance css box that’s part of the Customizer:
.rc-nav-standard .uk-navbar-nav>li.logo{ background-size: contain; }This should make your logo visible in full.
If it still doesn’t work. Don’t remove that code. Come back and reply. I would like to see it in action, to help you fix it. If you need help figuring out how/where to add that CSS code, do let me know and I’ll try to walk you through this.
^V
Forum: Fixing WordPress
In reply to: Site Domain – How to edit?When you try to login, WordPress uses values for siteurl and homeurl that are set in the database. That’s why you’re being redirected.
So, for development purposes, open your wp-config.php file on the temp site and add the following lines:
define('WP_HOME','http://example.com'); define('WP_SITEURL','http://example.com');Make sure to update URLs with the correct ones for your temp site. This will force WordPress to use them, instead of the ones in the database. This will NOT change database values. Deleting those 2 lines will go back to what’s in the database.
If you’re changing site url from http://www.site.com/wordpress to http://www.site.com/, you will need to update this in your database. Ideally, in production, you don’t want to use those 2 constants I mentioned above. So you’ll need to update your database.
I would recommend checking out this plugin when you’re ready to take your website live with the new domain: https://en-ca.wordpress.org/plugins/velvet-blues-update-urls/
^V
Forum: Fixing WordPress
In reply to: Pages Publish box has “Update” button, not “Publish. button.When you click Publish on your drafted page, It will automatically go live on your website. When editing that page, it is normal to see Update instead of Publish. You cannot publish twice the page but you can update it multiple times. Do not worry, when you click update, all your changes will be saved on your page will be updated.
If you do not want to Publish you page, you have an option to save it as Draft first. All you have to do is Add New page, and within the upper right corner of Publish Box is a Save Draft button together with Preview button. Click that Save Draft button and your page will not be published yet you can see still the preview.
^P
Forum: Developing with WordPress
In reply to: OEmbed InstagramI apologize, I misunderstood the context. This is the only way to embed the Instagram posts. The “embeds.js” you are referring to is an Instagram file. Without it, Instagram posts can’t be embedded.
I recommend using BJ Lazy Load. The plug-in is lightweight. It replaces all your post images, thumbnails and iframes with a placeholder and loads the content as it gets close to enter the browser window when the visitor scrolls the page. This should help load your pages faster.
Forum: Developing with WordPress
In reply to: OEmbed InstagramIt is true that loading multiple JavaScript files can slow down loading time of your page/pages. You can manually embed the Instagram posts on WordPress pages since embedding Instagram posts are now supported.
On your browser, locate the Instagram post that you want to include on your page. Copy the link on the browser’s address bar and paste it directly on the WordPress post. It will automatically generate a preview for you. Repeat this for the rest of the posts.
^P
Forum: Fixing WordPress
In reply to: Logo helpTo move your logo past the thin white line, you can change padding-top of your CSS file to:
.logo { padding-top: 5px; };Is your header in a form of picture or text?
^P
- This reply was modified 9 years, 1 month ago by ProjectArmy.
Both Sucuri and Wordfence are good. So it depends on what your budget allows.
Wordfence will clean it up for $149 plus it gives you 1 year premium subscription to their plugin.
Sucuri will clean it up for $300/year, you’re paying for their platform not just clean up. Since it’s an annual subscription, they will monitor it and clean it up if it gets infected again.
^V
Forum: Fixing WordPress
In reply to: Problem since upgrading to WordPress 4.7.3@amyls You’re welcome! I’m happy to hear that this worked for you. Do mark this topic as solved please, so others know this has been resolved 🙂
^V
Forum: Fixing WordPress
In reply to: how to change the admin-passwd in the dashboardIf you simply want to update your password, you can go to your profile page by clicking on “Howdy, Admin” in the top right corner. “Admin” is your username, so it might be different for you.
After you click on it, it will take you to
http://example.comwp-admin/profile.phpScroll down until you see a button “Generate Password”. Click it, it will create a new password (save new password) and then click blue button at the bottom of the page “Update Profile”.
This will update your password. Make sure you save new password before hitting blue button to update it, you won’t see new password after that.
Also, keep in mind, clicking “Generate Password” button simply creates a new password but doesn’t change password in the database. You have to click “Update Profile” button to change password permanently.
^V
Forum: Fixing WordPress
In reply to: Website hackedWho are you hosting your website with?
Your PHP files are being downloaded. They do not appear to be infected. Right now it looks like either htaccess or server issue. It’s possible your server is mis-configured.
Contact your hosting provider. Most likely, it’s an issue on their end.
^V
Forum: Fixing WordPress
In reply to: Suspected Malware on SiteOK, it looks like you have a lot of infected files. You also have files that don’t belong in WordPress installation.
Make a backup of your entire site before doing anything. Keep in mind that we are not responsible for any issues that may come up as a result of following our advice.
My advice is based on assumption that you have a standard WordPress website, without any custom PHP files or anything like that. This helps me identify what files need to be deleted. I would recommend working through an FTP client, it’ll be the easiest way for you to complete my instructions. Follow them carefully. Read through everything first.
Let’s deal with deletions first. Here’s a list of files I would delete. They do not belong with a standard WordPress setup:
[HEX]pharma_redirector [29/03/17] /home/payrolle/public_html/roosters.php [HEX]PHP_Backdoor [13/07/15] /home/payrolle/public_html/food.php [HEX]php_post_spammer_2 [31/03/17] /home/payrolle/public_html/post.php [HEX]pharma_redirector [29/03/17] /home/payrolle/public_html/spots.php [HEX]pharma_redirector [29/03/17] /home/payrolle/public_html/sheltered.php [STR]php_code_includer_1 [27/03/17] /home/payrolle/public_html/816d5d/htpvl/alopr/votys.txt [STR]php_code_includer_1 [20/03/17] /home/payrolle/public_html/816d5d/htpvl/votys3.php [STR]php_code_includer_1 [27/03/17] /home/payrolle/public_html/816d5d/htpvl/votys.php [STR]php_code_includer_1 [27/03/17] /home/payrolle/public_html/816d5d/hmofr/alopr/votys.txt [STR]php_code_includer_1 [20/03/17] /home/payrolle/public_html/816d5d/hmofr/votys3.php [STR]php_code_includer_1 [27/03/17] /home/payrolle/public_html/816d5d/hmofr/votys.php [HEX]pharma_redirector [29/03/17] /home/payrolle/public_html/subsidies.php [HEX]pharma_redirector [29/03/17] /home/payrolle/public_html/undresses.phpNow, we need to make sure your WordPress core files are clean. So we will delete all your core files and replace them with a fresh set.
First, download the latest version of WordPress and unzip the file. So you have a folder with all the core files on your desktop.
Now, we need to delete all core files and folders, but make sure you DO NOT delete “wp-content” folder and “wp-config.php” file. We need them to stay. DO NOT DELETE THEM.
So the list of files and folders to delete:
/wp-includes/ /wp-admin/ index.php license.txt readme.html wp-activate.php wp-blog-header.php wp-comments-post.php wp-config-sample.php wp-cron.php wp-links-opml.php wp-load.php wp-login.php wp-mail.php wp-settings.php wp-signup.php wp-trackback.php xmlrpc.phpAfter you delete these folders and files, you need to upload the same folders and files from your desktop folder. The ones that came inside zip file I’ve told you to download and unzip before. Do not upload “wp-content” folder. It’s already there, we did not delete it.
After you upload everything, you now have clean core files.
Next step is to delete all inactive theme folders. It appears that you have multiple themes inside “themes” folder. I don’t know what theme is active. Identify your theme that’s currently being used by your website, do not delete it. Delete all other themes. Do not save any of them for later use. Delete all inactive themes.
The last step is to clean up infected plugins. Go inside “plugins” folder, and delete the following plugin folders:
/who-hit-the-page-hit-counter/ /jetpack/ /wordpress-seo/You can re-add them later through wp-admin, or you can manually download zip files, unzip them, and upload them inside your plugins folder. All your settings in database should be preserved.
After you finish everything, ask SiteGround to scan your website again. If your active theme was infected, it will most likely popup again as infected in the scan. If it happens, provide the new list of infected files here. And if possible, use https://pastebin.com/ to share contents of each infected file. Hopefully we can remove malicious code from infected files.
Very important to remember, SiteGround’s scan is not 100% accurate. No antivirus scan is. It is possible for other files to be infected that scan did not pick up. Without going through each file, there’s no way of identifying them. So if re-infection happens, most likely there will be files that avoided detection by the scan.
Good luck.
^V
Forum: Fixing WordPress
In reply to: Kanji fonts display as ???I don’t think it supports anything other than English. What I would recommend is setting up a CSS class, let’s say “kanji-font” where you specify a font that can display Japansese characters. Then, simply wrap Japanese text in that class. That should display it.
So basically:
<div class="kanji-font">JAPANESE TEXT</div>And in your style.css, you’ll need to specify what font to use. I looked up fonts for Japanase, and this thread cam up. Check it out:
http://stackoverflow.com/questions/14563064/japanese-standard-web-fontsYou can try adding this to your style.css and see what it does:
.kanji-font{ font-family: 'MS PGothic', Osaka, Arial, sans-serif; }If you have a lot of Japanese text with various stylings and layouts, it may require a bit more additional CSS classes to set correct font.
Let me know if this works. I can’t test it on my end.
^V