Forum Replies Created

Viewing 15 replies - 376 through 390 (of 3,259 total)
  • “Already Installed You appear to have already installed WordPress. To reinstall please clear your old database tables first.”

    Is this in response to running “<domain/>wp-admin/install.php” ? If yes, then all is good, as I said the website barely knows it has moved ! You have installed the files and database. Does the website work ?

    Deleting tables is not to be feared given that you have a .sql file to restore from.

    I feel your pain.
    When I am doing experiments like this, I configure the localhost dev site to use EXACTLY the same name as the live site, then using two lines in my “hosts” file direct my browser to resolve the name to localhost. Commenting out these lines and I am back to the live site, when I want to address the cPanel or database on the live site I use the server name to login to the cPanel, same for FTP.
    As part of the setup I FTP down all of the website files, then examining settings in wp-config.php I create my database and databaseuser and password using the same text as the constrained hosted names. Then backup the hosted database and restore it locally, to save myself any confusion I add “(local)” to the sitename.
    The website barely knows it has moved server.
    I then develop my plugins and customise CSS and child themes etc.
    I probably DON’T upload the whole database except when I am recovering the live site from a hack in which case it has been closed down, rather I would reproduce menu setting changes or copy/paste new pages/posts.
    Among the few features which probably don’t work the same on localhost is SMTP so this testing has to be done on live site, similarly for updating plugins/themes/core using the WP dashboard, but with local computer access this is not an issue.

    The lines I would be adding to the “hosts” file are:

    127.0.0.1 kidsempowerment.org
    127.0.0.1 www.kidsempowerment.org

    Details here: https://en.wikipedia.org/wiki/Hosts_(file)

    Configuring your server to use the “VirtualHost” method is covered here:
    http://httpd.apache.org/docs/current/vhosts/

    Much the same is possible if your development hosting (infosysdevconcept.net) just so long as it is a different IP to the live hosting. Rather than adding a subdomain it would be an addon domain, this requires that the hosting be configured to NOT check that addon domain resolves to itself, on occasions I have had to get my hosting tech support to do this for me. Of course in this case the IP in the hosts file would be that of the infosysdevconcept.net webserver.

    Firstly your wp-config file settings are not that relevant to this task, what you have should be fine.

    What you are doing requires many stages, all of which need to be consistent it to work, can be like getting the holes in Swiss cheese to line up. So before you go to the trouble, may I ask if you really want to make your old laptop a public internet facing machine, many people delegate this to their commercial hosting service.

    None the less I will give you the guidance I can.
    For the sake of the discussion I will assume that your ISP has permanently assigned you an IP address of 1.2.3.4, if you instead have a dynamic IP address then you will need to add the interactions with one of the “dynamic ip DNS” providers to my instructions.
    Since you mention a LAN then I assume that you are using a modem/router as a LAN gateway, again for the purpose of explanation I will assume that the laptop has a LAN address of 192.168.1.31
    First login to the LAN modem/router and setup port forwarding for port 80 (the html default) to forward to 192.168.1.31:80, this way when the modem receives a request from the internet side it will forward it to the laptop.
    You now need to login to the domain name manager where you bought your domain name and set the domain name servers (DNS) to 1.2.3.4, after this setting has propagated through the internet’s domain caches it will tell any browser using your domain to forward the request to your modem where it will be forwarded to the laptop.
    On the laptop you need to configure the webserver (like apache2) to use the “VirtualHost” method so that when a domain request arrives at the laptop the webserver knows which file directory to load in response. Details here:
    http://httpd.apache.org/docs/current/vhosts/name-based.html

    Now you need to adjust your WordPress configuration so that the “site address” and “wordpress address” both use your domain name.

    For computers and tablets on the LAN you need to add the domain name to the “hosts” file, using a line like: “192.168.1.31 mydomainname.com”
    details on hosts file here:
    https://en.wikipedia.org/wiki/Hosts_(file)

    Forum: Fixing WordPress
    In reply to: Larger Graphics

    It would help us help you if you included a link to your website.

    You need to customize the CSS of your website. Login and view your page, in the top bar click customizer then the “additional CSS” tab. Also invoke your web browser’s “browser inspector”, it will show you the html and css your page is using. You will see in live preview the CSS you add. Settings to experiment with are negative padding and margins, also position relative and left negative settings. Be aware that you want your site to display sensibly in phones and tablets, you may need to incorporate media settings.

    Comment: result was "filename.sql", to facilitate longterm management suggest that you incorporate the date into the name in the form YYYYMMDD so that they sort nicely in a list, such as “filename20180610.sql”

    When I said “backup your wordpress files”, I meant the wordpress ones and not the webserver ones. The webserver can presumably be reinstalled anytime from a fresh download. So the answer is (2).
    The same can be said for some of your WordPress files since you should never ever touch the files in the “wp-includes” and “wp-admin” directories.

    • This reply was modified 7 years, 11 months ago by RossMitchell.

    This plugin will let you import a csv file to a custom table:
    https://wordpress.org/plugins/wp-csv-to-database/

    Then you could create a search form and display in code in a custom page template. However this is well beyond beginner grade. Do you have any experience in any of html / css / php / javascript ?

    Maybe it is still compromised, but I see other stuff such as minified files and cache that could easily be the problem.

    Suggest that you disable all plugins by renaming the “plugins” directory.
    DO anything else needed to disable the cache stuff.
    Lets make the site work before we try and make it fast.

    If this does not help then rename your theme directory “Proximity” to make the site fallback to the default theme.

    Yes it is.
    This article covers the issues:
    http://codex.wordpress.org/Moving_WordPress

    There is a plugin called DUPLICATOR which helps.

    If you need to know why, you may look at the error logs and maybe enable debugging.

    This is what I would do to make it “propper”:
    – load phpmyadmin database tool, login etc, select your database
    – Take a backup, using the “export” tab, choose CUSTOM rather than SIMPLE, add the data to the database name in the file field.
    – view the “users” table, view (browse) the contents, find the row for your account, click “EDIT” on this row.
    – in the box for the email address put your new email address there, click SAVE

    As a final resort you can edit the email address in the database using phpmyadmin.

    Which theme ?

    A viable alternative is to download the .ZIP archive and install it, unzip it locally and upload the whole file tree using filezilla. Or use cPanel to do the same.

    With the cPanel password you can login to the hosting management panel, then using the file manager there upload your local copy of wp-config.php to the website files.

    So this problem happens only (sometimes) when you are using Microsoft-Edge browser to create the newsletter inside the WordPress page editor. Does this problem happen with other browsers, or with other operating systems ? If the answer is NO, then it is a Microsoft problem.

    What does Microsoft technical support say ?
    How many times have I been told that you must use commercial software if you want to have support.
    From experience Microsoft will blame and deflect responsibility for their fault.

    Suggest that you use a different browser or different computer.

    Very possibly these unwanted newlines have crept into some of the files. These problems can be very subtle and difficult to find.

    Note for the sake of this discussion <EOF> is the “end of file”, it is not a character or anything, it just indicates where in the file the data ends.
    Say that a .php script file previously had a final line of:
    ?><EOF>
    but in an edit is inadvertently changed to:

    ?>
    <EOF>

    with a newline after the close php phrase. The difference is very difficult to find.

    Please examine your files such as wp-load.php and also your theme files for this problem.
    This same problem is sometimes seen as “headers already sent”.

Viewing 15 replies - 376 through 390 (of 3,259 total)