I have a WordPress site almost completed to live server.
The only problem I am facing is when I am renaming the URL in my database from localhost URL to live URL, I am not able to see contact us form details like From, To, Subject, HTML Body text.
All other things like widgets, pages content is fine but I am just not able to see these contents for Contact Form 7 when moving site to live by changing the URL and importing that database to live.
Why this is happening? What should I do? Or any proper method to do this?
This happened when you changed the URL in the database.
When working in the localhost environment, your url was recorded in the database and was serialised. Basically, the number of characters were counted and assigned to the url.
So, if your path was http://localhost/my-site, the number 24 is assigned to it in the database.
When you changed your url in the database to a new one and uploaded it, the number of characters more than likely did not match the original number assigned in the database. If your new url is http://my-site.com, the number of characters being 18, then the original number of 24 does not match and this causes a conflict.
The database will update itself and as a result, theme options will reset, including your Contact Form 7 fields.
You will find a better explanation here, http://wordpress.org/support/topic/theme-delicate-theme-options-lost-when-moving-to-new-domain, look to Chip Bennett's answers.
A workaround is to take a copy of your localhost database. Keep that safe.
Then, go to Settings > General and change the WordPress Address(URL) and Site Address (URL) to your new path. Now, take a copy of your database again. This will used as your database for your new site.
Reupload your localhost database to make sure the localhost site is working again if you need it.
By using the New Database on the new site, your contact form 7 drtails (and any theme options if they are being used) will now come into the new site.
I have had this happen to me a lot before finding this and ever since I started using this method, all my information has come across perfectly.
Also check out http://codex.wordpress.org/Moving_WordPress
This plugin should fix the problem:
https://wordpress.org/plugins/fix-contact-form-7-blank-fields/
Related
I have a main php Admin page that allows me to edit information contained within my database. I have several forms on the page, and a tabbed setup that allows me to nest the edit forms within each tab. All the forms refer Action="" back to the same php page for process and the page naturally looks to see if a button isset after POSTing otherwise just loads the usual tables and does not UPDATE the database.
Prior to web deployment I utilise XAMPP to develop the pages, however, once contented with the pages I upload to HostPapa. Whilst in the XAMPP environment, when i submit my information to be processed the page loads fine, the database is UPDATEd and the Success Message displays fine. However, once I upload to HostPapa and attempt the same steps, once i click the submit button and the data is sent back to the same page for processing, only a blank screen appears. When i hit refresh though it completes the processing and displays the Success Message. Data is UPDATEd in the database and nothing else appears to be wrong.
My questions are:
Any idea why my localhost website would display fine but my live version kind of stutters through the processing
Is this a setting on HostPapa that may need changing
Have i fallen pray to a coding taboo that prompts this response in the live environment
Worth noting that I had another XAMPP/HostPapa issue where I had not utilised the correct file name with Capitals in a form and this caused a failure as the file name did not match the coded file name exactly. This was rectified by insuring that file names and coded file name were match and case sensitive. The local XAMPP server did not care about case sensitivity which makes be believe that the form submission issue noted above may be a PHP option on HostPapa that is currently turn one.
Any assistance in this matter would be appreciated.
Regards,
C
To anyone who reads this and had a similar issue when utilising multiple forms on the same page. My issue is I had breaks(empty rows) between my <?php ?> tags in the header of the document.
I used several <?php ?> tags to encompass the different $_POST functions for my own clarity. This caused the server to interpret these breaks(empty rows) as an intentional space and made it appear that the header had already been sent. So naturally as my page attempted to load, the server believed i was attempting modify the header that had already been sent.
I believe this coding faux pas was masked by XAMPP during my offline build. I did a bit more research and I believe this also has something to do with the UTC selection.
At any rate, thank you Dony for attempting to assist. It was a hard issue to articulate.
Regards,
Cheyne
I have built a pretty big wordpress website, and wanted to move to different hosting and domain...
I moved files, database, changed wp-config file and even changed all mentions of old domain to new one in the mysql database content.
Also, I had to change TYPE=InnoDB to ENGINE (manually), but I don't think it could cause some problems.
So, the problem is that, the website doesn't show any content, menues... etc. I can only see header and footer. Admin Panel works but when I go to pages/media It shows 0 result... nothing is there. However, phpMyAdmin shows that the pages, posts... etc. is on place.
What could the problem be?
Thanks
The problem was in database compatibility, I set it as MySql323 and it worked for me.
We have a network of Bigcommerce sites, on which we've installed several tools that are controlled by one central site, using Bigcommerce's include feature. The url passes a get value to the php, and retrieves all of the pertinent information in our DB and displays several things.
The problem is that, as of last night, all of the 40-some sites began displaying content from the newest user - the newest DB entry. I deleted the newest user, and it reverted to the user just before that.
The weird part is that when I check the url being included, the correct information is displayed.
Check it out (I've stripped out most css and js, so most relevant info is shown) -
Site URL: http://www.epicflowers.us/
Included URL: http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php?store_id=123456789
The colors and the text should be exactly the same. It appears that the DB queries are returning the correct information, but the site including the url are not.
What I've already tried:
Duplicating and renaming files, in case it was a caching issue.
Ran an ajax call to retrieve the same info (which worked, but it's too slow)
This didn't seem to happen as a result of changing anything, and the PHP side seems to be working fine. No one has touched the code in a few days, but the support tickets started coming in early this morning. It's altogether possible that it's completely unique to BigCommerce.
Any ideas?
Update:
It appears the BC include is ignoring the get values at the end of the url, so http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php?store_id=123456789 appears as http://epicflowers.com/toolbox/fetchToolbox2/toolbox.php, obviously negating anything unique about the store the code is on.
Any ideas on why? Bigcommerce hasn't published anything in their blog that suggests this has changed.
I need to locate the file that manages the main page of my online store developed with Magento (which would be the index.html). I just need to change a link, and I've used Firebug shows that the file i need to edit is "misitioweb.com" (the main page) but the document itself does not appear in the ftp. The initial page consists of a bunch of XML, and PHP's PHTML. If someone wants to see the address page is http://peluches-cel.com and only want to change the destination URL of the link "Peluche del mes". I have used the help of Magento to show "Help template route" and I downloaded the 4 files that are more likely to manage that area of the page, but I can not find the part where specify the destination URL of the link. I have always worked with HTML or PHP separately (I have little experience with PHP) and I find it very difficult to understand how Magento builds each website. If someone could give me a little hint on how to achieve change that link would you do me very happy, it took a long time trying it on my own and looking online but can not find how to do any guestbook or forum that explains how to work well with Magento, in my language, there are hardly any documentation on Magento, so I decided to try my luck in this forum and I've read on several pages that involves many professionals in the e-commerce. Thanks in advance to all who devote their time to read my question.
I don't really understand what you want.
But if you want to change the base URL, you can do that by accessing database via phpMyAdmin, find the table core_config_data and change the URL in the web/unsecure/base_url and web/secure/base_url to what you want.
Not the url of the page, but the url of a link. Try clicking on "Peluche del mes" and see what comes out, gives access to http://www.peluches-cel.com/peluche-del-mes, I want access to http://www.peluches-cel.com/oso-tiziano-2col-40cm directly. The problem is NOT EXISTS peluches-cel.com/oso-tiziano-2col-40cm page on FTP, to be done in PHP there are different functions that are responsible for creating it at the time of the request I need to change the link to "Peluche del mes", if you see with firebug or any other source code analyzer, the source code of the page you will see that line 146 is managed that link, but I can not directly access the code ¿do you understand me? through an ftp client no such file or html as php magento works with the model view controller, that's my problem. Thank you again.
I have a drupal site which I deved a few years ago. We duplicated it to a new site/domain/db (which pulls from a subdirectory of the original site)
I tried to only duplicate the site settings (views and content types), and leave out all the site node data (it is a content driven site, and we are launching a sister site). Everything wen OK. Unfortunately, in the new site, I find that I cannot update "site information" (which means I cannot set my front page). I tried to update the data in the DB, but that let to the relevant site settings field to appear blank
I i had to implement a ridiculous hack to deal with the fact that the front page is now technically a 404. Even more weirdly, the original site has the same problem now (all I can guess is that I updated the table from the wrong DB by mistake?!? ).
As best I can tell, this data is stored in "variable" in the DB. I have imported a good "variaable" table from an old copy of the site, but to no avail.
So I am completely stuck. If anybody has any leads whatsoever, I would be incredible grateful.
Thanks!