RickC4
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to remove Zend Optimizer from wordpress (and gut it)I do not have two accounts, this is my account, I share computers with my business partner.
If you have such issues you should email the person concerned rather than make wild accusations.
Have a look at my posts, no spam there, comments gripes and help just like anyone else.
As I explained previously, I use bit.ly to remember sites I recommend, years ago someone said why don’t you point them to aff links, I found out they do not cost more, so why not. I do not go around blasting these but rather give people the benefit of my knowledge.
Years ago in consultancy I learnt not to ASSuME because is makes an ASS out of U and ME.
Wow you people must lead boring lives. As a habit not good to assume the worst of people.
I will get my partner to answer you about the zend issue.
Forum: Fixing WordPress
In reply to: Merge WP Blog and WP Site on same server?@jandembowski, the reason I use that link is because bitly helps me remember all the links I recommend, Aff links doe not cost a user a cent more and furthermore they benefit from my help. In that case there was a free version but if it makea you feel somehow good go delete the link.
The Prefix is in the database, in the old days it was always wp_tableName but to make it harder for hackers people use things like wp_dfjed_ or something random.
You can get a plugin to change the database
https://www.ads-software.com/plugins/db-prefix-change/
be careful, you should first have a look at the database in PHP my admin or edit your wp-config file to see what the prefix is now.
Hosting installs are often bad because they use admin as the name of the administrator, if you have that change it, just add a new admin as something like bethadmin45c, log out and log back in the new admin account you just created then delete the old admin and it will ask you who to assign the new posts to, make sure you assign them to the new user.
Personally I would not bother merging the two, go get lastpass, it can generate secure passwords and you can log into your site in a heartbeat.
I really see no reason to merge the site, I have 167 of my own sites and many other customer sites, I have central management for some of them but most I just manage as required.
I agree about WXR is rubbish
Free backup plugins like duplicator do not restore images properly if you change domain (they point to the old domain).
Backupbuddy is good to migrate but not designed for merging,
If you really want to do this you could restore both to the same dev domain (as I described above) just so you get your head around the structure of WP and the Database.
Start by looking at the back end of WP (the database), choose a table on the left (e.g. options and browse 500 records, then see the strings and how the thing works.
Merging to a backup on a dev sub domain just to learn is fine but I would not bother if I were you.
Forum: Fixing WordPress
In reply to: Merge WP Blog and WP Site on same server?Are they using the same database?
What about the prefix?
You do not say WHY you want to change it, especially if the second one is image heavy as the size of the two combined may force you to have to implement a staggered backup.
With regard to keeping the SEO, if you used something like Site.com/blog/Postname then no problem otherwise you use something like [ Affiliate link deleted, do not post those here please ] to 301 redirect the old links
What I would do is import both sites into a new dev site or perhaps clone one and then test the import of the second.
There will be issues because things are numbered in some tables so there is potential for conflict.
You could dump the SQL tables and then import them, ftp up the images and see how bad it looks
Also by backing up the parent site into a dev clone under say prefix wp_a1_ , then changing the prefix to wp_a2_ then restoring the second blog into the the same database under wp_a1_ you will have many of the same descripters, then you SQL dump the wp_a2_ and restore to wp_a1_ it will probably fall over but it will tell you where the problems lie.
Personally I do not see any issue with having two installs, there are sitemap plugins what will span sites installed in such a way. There are also utils that can install your plugins into multiple themes from one portal.
Forum: Fixing WordPress
In reply to: Possible to hide a published Post without a password?It really depends on why you are hiding it.
For example if you have a product and are trying to hide the content then your solution will not protect you from people sharing the URL.
I have achieved this, one is wordpress membership products that give access based on membership level. It usually requires a combination of two products to completely lock things down.
These need to be locked down very tightly as there are scanners that will find pages and the first place someone looks is your robots.txt file if you just tell google not to index it.
The way these things work is they restrict permissions unless you are a valid member that has logged in recently. They also lock down the parts of wordpress that want to spread the word about your site.
Even then it can be futile because legitimate members can still save content off your site.
If you just want to hide a page there are plugins that will put a simple block, some even force the user to share on FB or twitter to get access.
Forum: Fixing WordPress
In reply to: I cannot Log In To MY DashboardI have had this, usually after a failed attempt to migrate a site from one domain to another.
In the end it was easier to make another backup and restore to a dev domain.
The issue was actually in the back end database.
It seemed that in the usermeta there had been some values set to zero
https://www.ads-software.com/support/topic/admin-problems-after-moving-wordpress?
the Page it referred to is long gone but you can see it on the Internet Archive
My problem was NOT the Prefix but the capabilities, user_level etc.
The reason I started over was because if the migration tool messed that up (probably because of a PHP process being killed off by the hosting company) then who knows what else it messed up.
Forum: Fixing WordPress
In reply to: Site hacked4.2.1 was released to fix cross scripting
to figure out what files were/are infected zip up the site and run it via Virustotal (if under 200mb)
I would break the site down into smaller and smaller gtoups of files until I figured out the offending code.
The first thing you need to do is secure your hosting change your passwords, use lastpass to generate secure 16 character complex passwords.
If you use cPanel and have more than one site you are vulnerable from one site (under your login) affecting another. One of the reasosn I do not use cPanel).
I would install new wordpress on a new DB, then import the site bit by bit after I have verified all files.
I would not re-import the user, options and user meta files from old site.
Remember that once a hacker has access to your FTP they can get access to your files which themselves give access to your DB.
I know you are worried about this but doing this gives you technical ability to take ownership of problems.
I would get wordfence, the free version is probably enough, although the paid version does have the ability to prevent access to the admin page from specific countries. I have found that excluding China, Russia, Ukraine and Romania cut 99% of attempted hacks. Then I decided to only authorize actual countries I wanted to have access to the Admin.
From what you describe it seems that they managed to put a file on the public facing site, then they ran that URL to test it, it probably infects users and chances are they would spam people to visit that link which would infect their PC
For SEO use Yoast, better IMO anyway!.
Forum: Fixing WordPress
In reply to: How to remove Zend Optimizer from wordpress (and gut it)The way I see it is that commercial people do stuff to WP all the time, it is the kind folk on this site who figure out what they did and how to rip it out.
I remember issues with Cache products in the past that did the same, I am sure that someone will come along who has had to gut this sucker out of WP.
The official people will not tell me what table changes they made, the usual answer from commercial people is upgrade to our XYZ product, well that does not interest me because anything that prevents you accessing WP-Admin has to be gutted.
So far I have found that via FTP renaming the plugins and theme folder (yes some people encrypt their themes with this stuff) and then accessing WP-Admin will get you a blank screen, but if you then rename the themes folder back (but not the plugins) you can get access to the WP-Admin because WP then reverts to a base theme.
Then once loaded you can rename the Plugins folder and WP will automatically deactivate all plugins, you can then delete whatever it was you bought that had this Zend rubbish.
I noticed that the IonCube installer that was needed to install this created file in the CGI folder, so I have ripped that out.
Now I am trying to figure out what it changed, I have seen some lines in WP-Settings which kill the site if remmed out.
I am thinking is best to put a fresh install of WP in place and change the WP-Config file for the appropriate database settings, but still have no idea what other stuff they have scattered around the files.
My feeling is not to buy anything encoded with Zend. There is no excuse for it, licensing can be done at activation from authors servers for commercial products, although I steer clear of any that require it for the front end. Last thing I need is another thing slowing down my sites.
Forum: Reviews
In reply to: [BackWPup – WordPress Backup & Restore Plugin] Wot no Restore?Well pentool
Some people like to be in IT because they like to do all this silly commands in the right syntax etc etc, it makes them feel clever or that they earned their PHD.
Some of us believe in working smarter.
The sites I manage are gigabytes in size, so given a choice I would rather upload two files by FTP, type a URL answer a few questions (which are prefilled if I am restoring to the same domain) and it is just done. Then I can get on with some work that engages my brain rather than watching.
Using the manual solution I have to employ a 3rd party zip solution if I am not using cPanel, I have to interrogate the WP-config file, oh and I have to hack the Options table because I am restoring to a different domain.
As I said, in any backup procedure it is the restore that takes time, websites lose money every second they are down, so doing wasting all this time on tasks that can be automated is just plain stupid.
Also as a product, this crappy plugin has to compete with other backup products that are infinately superior.
Forum: Fixing WordPress
In reply to: Simple way to fixI have come to the conclusion that the theme was badly written, the author seems to have disappeared.
I looked at another theme of his and it was pretty much the same, it worked initially but as you configured the settings it started displaying hundred of those errors to the point where you could not login to backend and had to remove theme with FTP.
I was hoping I could trace the error, hence I asked what the 2226 referred to, I looked at line 2226 of functions.php but no error was obvious and this link suggested it was whitespace but I could not find any:
Not really harsh at all, I think it undermines the spirit of WordPress because it just acts as a hook to a commercial product.
If it were supported but had a few less features then fine but this is a blatant abuse of the repository.
WordPress is an Open Source product and all plugins including the commercial ones are subject to GNU licence and have to provide source on request.
Building a website on the back of a product with no support is just a waste of time and money.
As you say best to look for alternative rather than invest your time in an unsupported product. The fact that WordPress auto updates between revisions means that your site could be killed by this plugin if there was an incompatibility.
Forum: Themes and Templates
In reply to: [Hathor] Embedding videos in service blocksYes I would like to be able to embed a video in one of the Sliders
Forum: Fixing WordPress
In reply to: Simple way to fixProblem goes away if I remove theme but I have done a lot of work on configuring the theme, just trying to find out what is wrong with it.
I have hardly any plugins at all, contact form 7 and really simple capcha which I have used on hundreds of sites.
Just trying to figure out where this theme has got itself tied up.
The link suggested this is a PHP issue with white space, then it goes on about one bit of code calling another and something going wrong at which point I go glass eyed.
I am happy to edit the code or move one line to another but rewriting is too much.
I was hoping this might be an easy fix, all I have done is config the various colors of the theme and the layout options.
Forum: Fixing WordPress
In reply to: What has WordPress 3.9 done to my widgets?Can’t list my site but it has been working for years and 3.9 stopped this displaying
This was the code that previously just pasted in the widget
<a href="https://hidemyass.com/vpn/r1070/" title="Hide My Ass! Pro VPN"><img src="//d1piupybsgr6dr.cloudfront.net/ads/set2/twozerozerotwozerozero.gif" alt="HideMyAss.com"></a>
A friend of mind has ebay code in her site and same thing. It displays text if I write it in, it displays the heading above but nothing otherwise.
Appreciate your taking the time ZandyRing
Forum: Fixing WordPress
In reply to: Black background in adminchange the colors in profile
Forum: Fixing WordPress
In reply to: Cannot access my site, redirects to www.Doing this can cause a loop
At hosting level you have a site defined at www. but if you tell WordPress to go to https:// it will loop back to www.
When the hosting compamy sees such a loop they usually stop it.
The problem is that the parameters you save are stored in the database so edit those entries with phpmyadmin
In future a better way to do this is to backup the site with something like Backupbuddy
Delete the site and delete or flush the database
Make the change at the hosting company to host https://patiko.lt rather than https://www.patiko.lt
Then upload and restore the backupbuddy backup this time as https://patiko.lt
Right now you have killed https://www.patiko.lt you need to get it to canonical redirect to https://patiko.lt
This can sometimes be done at the hosting company which means less code