Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey @melhopkop,

    Thanks for taking the time to follow through.

    I have to ask, how was the live site downloaded?

    Also, was there an “.htaccess” file that came along with the live site’s files, during the download? If such a file exists, it may have unique settings for the live site, and may need to be removed. WordPress will recreate it if needed.

    At this stage, here’s what I would recommend:

    1) Create a brand new WordPress site with new files
    2) Copy the “wp-content” folder from the downloaded live site onto the new WordPress site
    3) Point the new WordPress site to your downloaded live site database

    That should sort the problem.

    If, however, you still experience trouble at step 3, then it may be necessary to re-import the live database, in which case I would advice that you use something like Migrate DB Pro to sync the databases. But we can cross that bridge if/when we arrive there.

    In any case, let us know how you get on.

    Best Regards

    Hey @dankmemesword
    Seems to me that 2 javascript actions are running consecutively when a product is added to cart. The first action adds the product to cart successfully, while the second action removes the product immediately. One after the other.

    Did you encounter this same behaviour with the default Twenty Seventeen theme? If so, I would advise similar to @lorro, that you reinstall both WordPress and WooCommerce. Then test using the default Twenty Seventeen theme.

    If the problem persists, have a chat with your hosting provider. All the same, let us know how you fare.

    Best Regards

    Hey @mrcangrejero
    That’s good to hear that you’ve got the problem licked.
    Awesome troubleshooting on your part. All the best!

    Hi @melhopkop,

    “config.sys”?? I meant “wp-config.php”! Sorry about that.

    I assume that if you point this imported site to one of your other local databases, the site then works fine?

    The database username and password would match your local database details, e.g. “root”, “root”.

    The other thing to perhaps take a look at is the permissions for that particular database (which was imported). Depending on how it was imported, it could still have permissions for the Dreamhost DB user account, which would likely be different from what you have locally.

    • This reply was modified 7 years, 8 months ago by CJ Andrew.
    • This reply was modified 7 years, 8 months ago by CJ Andrew. Reason: added more information for db permissions

    @dankmemesword: Ok that narrows things down a little.

    Also, check your WooCommerce->Products-> settings to see if you have “Enable AJAX add to cart buttons on archives” setting enabled. If so, try disabling that and test to see if you are able to add a product safely to cart.

    It could well be a javascript conflict between parts of Flatsome and WooCommerce own functionality; especially since products are added to cart for a split second, and then removed.

    If the problems still persist, save your Flatsome settings, then switch to Twenty Seventeen default theme, and try adding to cart.

    Post back to let us know how you get on.

    Best Regards.

    Hi @mrcangrejero. I can see the problem that you mentioned in your post. A few questions will help us trace this issue:

    1. Are you running a child theme on top Twenty Seventeen?

    2. Did you implement the frozen header using custom jQuery or Javascript?

    What I would suggest is that first you switch back to the default Twenty Seventeen theme, just to ensure that this issue is not coming from a plugin. If you have added a custom frozen header, then you might want to re-examine the code for that.

    Best Regards

    Hey @dankmemesword, as @lorro points out, this is likely to be due to some kind of conflict. A few things I would suggest:

    1. Ensure that your theme and plugins are up to date, then try again

    2. If that doesn’t help, then disable all plugins except WooCommerce, and then try again

    If you can successfully add a product to cart at that point, then you have a plugin conflict, and should enable each plugin one by one and test until you hit the problem again. That will help you identify the cause.

    If you’re experiencing the problem after disabling all plugins (except WooCommerce), then the problem is likely coming from your Flatsome theme. In that case, you may contact the theme manufacturers support line, because its a premium theme, and is not available from the Theme repo here.

    In any case, post back to let us know how you get on.

    Best Regards.

    Hey @melhopkop, as you’ve rightly observed, this error indicates a problem connecting with the database. A few things to help with troubleshooting:

    1. Can you confirm that you have a running MySQL instance on MAMP?

    2. Do you have any other active WordPress sites in your local MAMP environment?

    3. Can you confirm that your MySQL username and password match what you have in config.sys?

    4. Is this database (and its tables) accessible using PhpMyAdmin, or similar?

    5. Is the database imported from the live Dreamhost site?

    6. Are you able to connect to a brand new, fresh database on MAMP?

    You may have tried all the above, but it will be useful to confirm first that you have tried them all

    Best Regards.

Viewing 8 replies - 1 through 8 (of 8 total)