I moved my website to new VPS server. After adding new articles when I tried to share a post it showed 404 not found error with not featured images. I went to Facebook sharing debugger too where I normally would go if I see missing featured image or “old” title which I would have set at the time of publishing a post.
How do we refresh content if we see old content while sharing?
Yes sometimes, I set a post title and featured image in a wordpress post and publish it. Then I do FB share. Minutes later realize something wrong with the post title and I would change post title or featured image and then go to share it again. This time it would show me the old post title and featured images. So “refresh” it I would got to Facebook sharing debugger to re-scrape it using the button.
Well, this was not the point of discussion here. Facebook sharing worked just fine for me but when I moved my website to new VPS server. After some research over Google and Stackoverflow I learned that Facebook used IPV6 address to scrap your website data. As the settings of IPV6 was not correct for my website domain it just could not find and hence scrap my websites and its posts. So what to do now?
Either, I needed to set correct IPV6 values for my domain or to disable ipv6 altogether in order to make it working. Following some instructions for more experienced guys I decided to disable ipv6 on my server. As my server runs on Centos 7 I followed this guide https://www.unixmen.com/disable-ipv6-centos-7/ to turn it off. I restarted the server and to my pleasant surprise I could scrap my pages successfully again! No more 404 not found errors!
If you like this post please share it!
In PHP, to find whether a file exists in disk or on server we have:
However is there a way to know whether a file exists in an url, such as, https://www.google.co.in/images/nav_logo242.png? Continue reading
Following the stackoverlow answer http://goo.gl/z9IWCB I did everything correct as mentioned in the answer to create pdf preview thumbnail using php but I struck with an error as such as this.
error no decode delegate for this image format `\path\filename.pdf’ @ error/constitute.c/ReadImage/532″. Continue reading
To preview your WordPress website before making it live on Godaddy can be tricky. Especially if you are moving from Linux hosting providers such as hostgator, justhost etc. I recently purchased a multiple website hosting from Godaddy and wanted to setup a WordPress website and preview it before making it live with its own domain. Continue reading
Update Jun 03, 2016:
As a new update when you try to do this action it gives you an option to whitelist the action in question. Something like this.
So it solves this issue for the current user.
Old (outdated ?) story
I am using popular Newspaper theme on few of my websites. While editing theme settings from admin end it suddenly stopped saving theme settings. I tried different thing including inspect element and hence found this in the console. (see admin ajax 403 forbidden message) Continue reading
Finally, I got a chance to update my cakephp captcha support for CakePHP 3.x. It’s been quite long since CakePHP 3.x was out so I thought it was good to make it work finally. I had been receiving quite a lot of queries recently regarding the update. Continue reading
Got a working copy of https://blueimp.github.io/jQuery-File-Upload/ file upload plugin for CakePHP 2.5.5 built as a plugin. Forked and modified from the original repository https://github.com/hugodias/FileUpload into https://github.com/inimist/FileUpload to incorporate latest files and functionality. Continue reading
I have got two clients who work solely in WordPress. They market for Wordpress jobs and get websites done in-house. Sometimes, when they have extra work or the work which may involve some programming they source out such jobs to me. Continue reading
It can be said that WordPress is the best blogging, News and Magazine software at present. Most of the hosting solutions provide an easy way to install WordPress for you. To create a new website you just need to buy a domain name and a hosting account. Continue reading
Relating to a post I submitted a while back, along with creating a data connection on the fly I had to switch between two connections. That is, file based default connection and a dynamic connection based on user. Here is the scenario. Continue reading