GizmoLA.comArticles and information about Web development, history and programmingentemplates/2k11/img/s9y_banner_small.pngRSS: GizmoLA.com - Articles and information about Web development, history and programming10021Symfony & Doctrine Mapping problems with MySQL Bigint columns, and how to fix this
archives/133-Symfony-Doctrine-Mapping-problems-with-MySQL-Bigint-columns,-and-how-to-fix-this.html
In the process of upgrading a Symfony project from version 2 to version 5, I came across an issue with a MySQL table that has a number of BIGINT columns. There had been no issue previously, but after updating to the newer symfony (and doctrine components) mySQL bigint columns were empty/null in my doctrine entities.<br />
<br />
After some investigation I came upon <a href="https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/types.html" title="Doctrine Manual on Types">this section of the Doctrine manual</a>:<br />
<br />
<blockquote>For compatibility reasons this type is not converted to an integer as PHP can only represent big integer values as real integers on systems with a 64-bit architecture and would fall back to approximated float values otherwise which could lead to false assumptions in applications.<br />
</blockquote><br />
<br />
To protect symfony apps running on 32 bit systems, Doctrine maps Bigint columns to the string type, and this broke the entity definition I was using, even though my application will only be deployed on 64 bit systems. I think that for most people this is the norm. <br />
<br />
There are a few different ways to get around this issue, including type casting from string to integer/integer to string in your getters and setters, but if you have a lot of bigint columns across tables, that probably isn't a great solution. In this article, I present the solution I implemented, which utilizes a Custom Doctrine type to override the built in Doctrine behavior.<br />
<a class="block_level" href="archives/133-Symfony-Doctrine-Mapping-problems-with-MySQL-Bigint-columns,-and-how-to-fix-this.html#extended">Continue reading "Symfony & Doctrine Mapping problems with MySQL Bigint columns, and how to fix this"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2023-02-10T21:24:00Zwfwcomment.php?cid=1330rss.php?version=1.0&type=comments&cid=13332bit64bitbigintdoctrinemysqlormsymfonydocker4lamp - A LAMP Docker development environment
archives/132-docker4lamp-A-LAMP-Docker-development-environment.html
I have made this project (<a href="https://github.com/gizmola/docker4lamp" title="docker4lamp">Docker For LAMP</a>) publically available on Github, under the MIT license.<br />
<br />
The target user group is php developers who want or need a simple, minimal (yet very current) LAMP development environment. I want this to be friendly to new developers, and a useful alternative to localhost environments like xamp, mamp or wamp. <br />
<br />
Ideally it offers the type of convenience and isolation of a vagrant lamp environment except with orchestrated containers. <a class="block_level" href="archives/132-docker4lamp-A-LAMP-Docker-development-environment.html#extended">Continue reading "docker4lamp - A LAMP Docker development environment"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2021-11-17T01:02:00Zwfwcomment.php?cid=1320rss.php?version=1.0&type=comments&cid=132apachedockerdocker for lamplampmysqlphpxdebugSymfony 5.2 and Apache 2.4
archives/131-Symfony-5.2-and-Apache-2.4.html
Certainly the most convenient way to develop a Symfony 5.x app is to use the symfony server. Eventually however, you may have to deploy the application. For a number of years nginx with php-fpm was the preference for many sysadmins seeking to wring the maximum performance out of a webserver that also has to run php scripts, but there are now simple ways of configuring apache to use php-fpm while achieving comparable performance to nginx.<br />
<br />
For example a vhost setting like this one is possible:<br />
<br />
<div class="apache geshi" style="text-align: left"><br /><<span style="color: #000000; font-weight:bold;">VirtualHost</span> *:<span style="color: #ff0000;">80</span>><br />    <span style="color: #00007f;">SetEnv</span> ENVIRONMENT <span style="color: #7f007f;">"dev"</span><br />    <<span style="color: #000000; font-weight:bold;">FilesMatch</span> \.php$><br />        <span style="color: #00007f;">SetHandler</span> proxy:fcgi://php:<span style="color: #ff0000;">9000</span><br />        <span style="color: #adadad; font-style: italic;"># for Unix sockets, Apache 2.4.10 or higher</span><br />    </<span style="color: #000000; font-weight:bold;">FilesMatch</span>><br />    <span style="color: #adadad; font-style: italic;"># Proxy .php requests to port 9000 of the php-fpm container</span><br />    <span style="color: #00007f;">DocumentRoot</span> /usr/local/apache2/cms/public<br />    <span style="color: #00007f;">ServerName</span> cms.mydev.local<br />    <span style="color: #00007f;">ServerAdmin</span> admin@mydev.local<br /><br />    <<span style="color: #000000; font-weight:bold;">Directory</span> /usr/local/apache2/cms/public><br />        <span style="color: #00007f;">DirectoryIndex</span> index.php index.html<br />        <span style="color: #00007f;">Options</span> <span style="color: #0000ff;">Indexes</span> <span style="color: #0000ff;">FollowSymLinks</span><br />        <span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">All</span><br />        <span style="color: #00007f;">Require</span> <span style="color: #0000ff;">all</span> granted<br />    </<span style="color: #000000; font-weight:bold;">Directory</span>><br />    <br />    <span style="color: #adadad; font-style: italic;"># Send apache logs to stdout and stderr</span><br />    <span style="color: #00007f;">CustomLog</span> /proc/self/fd/<span style="color: #ff0000;">1</span> common<br />    <span style="color: #00007f;">ErrorLog</span> /proc/self/fd/<span style="color: #ff0000;">2</span><br /></<span style="color: #000000; font-weight:bold;">VirtualHost</span>><br /> </div><br />
<br />
<a class="block_level" href="archives/131-Symfony-5.2-and-Apache-2.4.html#extended">Continue reading "Symfony 5.2 and Apache 2.4"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2021-01-02T02:14:00Zwfwcomment.php?cid=1310rss.php?version=1.0&type=comments&cid=131apachephpphp-fpmsymfonysymfony5web developmentweb techSymfony 5: The Fast Track book and installing a local PHP version that works!
archives/130-Symfony-5-The-Fast-Track-book-and-installing-a-local-PHP-version-that-works!.html
<!-- s9ymdb:264 --><img class="serendipity_image_left" width="73" height="110" src="uploads/images/symfon5-book-cover.tn.jpg" alt="">Having backed Fabien Potencier's "<a href="https://www.backerkit.com/projects/fabpot/symfony-5-the-fast-track">Symfony 5: The Fast Track" book on Kickstarter,</a> I received the book a few weeks ago, and had a chance over the weekend to start reading it.<br />
<br />
As a Macbook/OSX user, his recommended environment includes a current locally installed version of PHP with a number of php extension libraries. You also need installation of the php standard composer tool, as well as docker. As I have a Macbook running OSX Mojave, I had to take a number of steps to be able to get started following the book and getting a working installation of the guestbook project using the book's recipe. Here's what I did:<br />
<br />
<br />
<a class="block_level" href="archives/130-Symfony-5-The-Fast-Track-book-and-installing-a-local-PHP-version-that-works!.html#extended">Continue reading "Symfony 5: The Fast Track book and installing a local PHP version that works!"</a>
GizmoLA.comnospam@example.com (David Rolston)2020-01-21T05:47:00Zwfwcomment.php?cid=1301rss.php?version=1.0&type=comments&cid=130fabien potencierguestbookphpsymfonysymfony 5: the fast tracksymfony5Composer install of Private Bitbucket VCS "aka" 'Invalid OAuth consumer provided'
archives/126-Composer-install-of-Private-Bitbucket-VCS-aka-Invalid-OAuth-consumer-provided.html
So you have a private Bitbucket Repo and you want to utilize it in your project <strong>composer.json</strong>. You may find that when you run the composer install you get an error pulling your private Bitbucket repo with messages about Oauth failure that may include "<em>Invalid OAuth consumer provided</em>"<br />
<br />
<a class="block_level" href="archives/126-Composer-install-of-Private-Bitbucket-VCS-aka-Invalid-OAuth-consumer-provided.html#extended">Continue reading "Composer install of Private Bitbucket VCS "aka" 'Invalid OAuth consumer provided'"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2018-04-05T20:07:00Zwfwcomment.php?cid=1262rss.php?version=1.0&type=comments&cid=126bitbucketcomposergitphpweb developmentweb techConfigure the Atom live server to use Chrome
archives/125-Configure-the-Atom-live-server-to-use-Chrome.html
<!-- s9ymdb:260 --><img class="serendipity_image_left" width="160" height="160" src="uploads/images/atom.png" alt="">The free open source <a href="https://atom.io/" title="Atom text editor">Atom text editor</a> from Github is one of several development tools that have gotten a lot of traction in recent years amongst web technology developers looking for an alternative to the big IDE's like Visual Studio, Eclipse or the JetBrains editors. <br />
<br />
Atom is aimed at the same niche often filled by Sublime Text, Vim and Notepad++, namely to provide a small self contained code editor able to work on multiple files at a time, and with available plugins that provide programming features like color syntax highlighting, smart indentation and robust search and replace.<br />
<br />
<br />
<br />
<br />
<br />
<a class="block_level" href="archives/125-Configure-the-Atom-live-server-to-use-Chrome.html#extended">Continue reading "Configure the Atom live server to use Chrome"</a>
GizmoLA.comnospam@example.com (David Rolston)2017-09-15T02:29:00Zwfwcomment.php?cid=1259rss.php?version=1.0&type=comments&cid=125Pull an EC2 console log using the AWS CLI api and jq
archives/123-Pull-an-EC2-console-log-using-the-AWS-CLI-api-and-jq.html
AWS provides a REST Api to everything they offer, and returns the results in Json format. If you have a server in a private network in a VPC, you might want to get the logs to see what happened at boot time, and the aws cli gives you a simple way of doing that:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">aws ec2 get-console-output --instance-id {i-xxxxxxxx}</div>
<br />
<br />
<br />
<a class="block_level" href="archives/123-Pull-an-EC2-console-log-using-the-AWS-CLI-api-and-jq.html#extended">Continue reading "Pull an EC2 console log using the AWS CLI api and jq"</a>
GizmoLA.comnospam@example.com (David Rolston)2017-08-14T21:16:00Zwfwcomment.php?cid=1231rss.php?version=1.0&type=comments&cid=123Howto serve a markdown document
archives/122-Howto-serve-a-markdown-document.html
<a href="http://allmark.io/">Allmark</a> is a simple self contained Markdown html renderer and server from developer Andreas Koch, that is written in Go. <br />
<br />
You could certainly install Allmark locally, but there are numerous editors or standalone operating system specific markdown parsers you could use.<br />
<br />
But what if you have some markdown documentation on a server, and need a quick and easy way to access that documentation? You can always just look at the raw markdown using vim, but what fun is that? <br />
<br />
Allmark is a full markdown server, but installing a server just to read a couple of markdown documents is something very few people would want to do. If however, your server has docker installed, you can be reading your documentation in all its rendered glory in a matter of a few seconds. Here is how: <br />
<br />
<a class="block_level" href="archives/122-Howto-serve-a-markdown-document.html#extended">Continue reading "Howto serve a markdown document"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2017-08-02T06:08:00Zwfwcomment.php?cid=1220rss.php?version=1.0&type=comments&cid=122allmarkdockermarkdownVagrant Share and Ngrok
archives/121-Vagrant-Share-and-Ngrok.html
As more and more people utilize virtualization for development the need to easily and securely share your work in progress with team members or clients can be a great boost to productivity. Such a tool is <em>also not bad when your kid wants to let his friend access that local minecraft server you are running on your workstation for him</em>, not that I would know anything about that. There are several utilities that are available, and now a plug and play option that is available if you use vagrant.<br />
<br />
In recent versions of Vagrant, Hashcorp has added a plugin called Vagrant-share. You can see if its installed by running <br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">vagrant plugin list</div>
<br />
And you should see something like this:<br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">vagrant-share (1.1.9, system)</div>
<br />
<a class="block_level" href="archives/121-Vagrant-Share-and-Ngrok.html#extended">Continue reading "Vagrant Share and Ngrok"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2017-07-17T06:44:00Zwfwcomment.php?cid=1211rss.php?version=1.0&type=comments&cid=121ngrokvagrantvagrant sharePutting Apache on a diet - how to get a lean configuration, Part 1
archives/114-Putting-Apache-on-a-diet-how-to-get-a-lean-configuration,-Part-1.html
In this article I'm going to go over some of the details of how Apache works, and uses memory. As you will see, the apache processes that serve requests will grow to include the amount of memory they need for a particular request, and they will still be using that memory, even when they are serving something simple like a .css file or an image.<br />
<br />
For this reason, the first limitation you are likely to encounter running Apache is a limitation on memory. I will explore this topic and show you how you can do the same.<br />
<br />
The first thing need to determine about Apache is what mode it is running in. If your plan is to use Apache with php via mod_apache, then the prevailing wisdom for many years has been that there may be library extensions in PHP that are not thread safe. For this reason, people have tended to avoid running Apache as a threaded server, for fear that scripts may randomly die producing the dreaded 500 Internal server error pages we all know and love. <br />
<br />
This fear may be overstated depending on the nature of your php code, but the defaults for apache packages I've seen, seem almost always to be using the prefork worker.<br />
<br />
<strong>Prefork vs Worker? </strong><br />
<br />
So the first question you might be asking yourself is, which mode is my current apache server running in? There is a simple safe way to determine this -- run the httpd(apache) program with a specific command line switch. There are programs like which and whereis that might help you locate it, if you don't know where it is.<br />
<br />
<div class="bash geshi" style="text-align: left"><br /><span style="color: #c20cb9; font-weight: bold;">whereis</span> httpd<br /> </div><br />
<br />
<div class="bb-code-title">CODE:</div><div class="bb-code">httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /usr/sbin/httpd.event /etc/httpd /usr/share/man/man8/httpd.8.gz</div>
<br />
So let's run the /usr/sbin/httpd with the -h for help and see what happens:<br />
<br />
<br />
<br />
<br />
<a class="block_level" href="archives/114-Putting-Apache-on-a-diet-how-to-get-a-lean-configuration,-Part-1.html#extended">Continue reading "Putting Apache on a diet - how to get a lean configuration, Part 1"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2017-07-16T04:04:00Zwfwcomment.php?cid=1142rss.php?version=1.0&type=comments&cid=114apachepmappreforkwebserverPHP Mysql support: mysql or mysqlnd?
archives/119-PHP-Mysql-support-mysql-or-mysqlnd.html
So you are installing a modern version of php using one of the alternative repositories, and suddenly you are confronted with a confusing choice. You want support for mysql (mysqli or PDO-mysql) in your php program. But which one to choose? <br />
<br />
First off, <a href="http://php.net/pdo" title="PDO">you should probably be using PDO</a>. It's just a cleaner database interface when compared to mysqli, and also tends to be the supported option if you're using an ORM like Doctrine2. <br />
<br />
But you probably have found that installing the PDO package doesn't get you support for MySQL. <br />
<br />
So what are these 2 packages? Well let's see what yum under Centos shows us, once we've setup webtatic as a repo:<br />
<br />
<div class="bash geshi" style="text-align: left"><br /> <span style="color: #000000; font-weight: bold;">*</span> webtatic: us-east.repo.webtatic.com<br />============================================== <br />php56w-mysql.x86_64 : A module <span style="color: #000000; font-weight: bold;">for</span> PHP applications that use MySQL databases<br />php56w-mysqlnd.x86_64 : A module <span style="color: #000000; font-weight: bold;">for</span> PHP applications that use MySQL databases<br /> </div><br />
<br />
In short, the mysql extension aka the mysql library is to quote Oracle/mysql <blockquote>... a general-purpose client library</blockquote> named libmysql.<br />
<br />
This was the original php approach to supporting mysql. MySQL provided a client api library, and using that c library, a php extension was created that depends upon libmysql implementing the famous mysql_ functions that allowed php to talk to mysql. <br />
<br />
The mysqlnd package (where nd stands for "native driver") is the fruit of a project to make mysql work optimally in the php language. Again to quote the mysql site:<br />
<br />
<blockquote>The mysqlnd library is highly optimized for and tightly integrated into PHP. The MySQL Client Library cannot offer the same optimizations because it is a general-purpose client library.<br />
<br />
The mysqlnd library is using PHP internal C infrastructure for seamless integration into PHP. In addition, it is using PHP memory management, PHP Streams (I/O abstraction) and PHP string handling routines. The use of PHP memory management by mysqlnd allows, for example, memory savings by using read-only variables (copy on write) and makes mysqlnd apply to PHP memory limits.</blockquote><br />
<br />
On top of these benefits are <a href="https://dev.mysql.com/downloads/connector/php-mysqlnd/" title="MySQLND enhancements">a number of interesting enhancements and support for plugins</a> that might be of specific interest to you as a developer or sysadmin. <br />
<br />
In general nothing should break in your code as the api should work the same under mysqlnd as it did with the old mysql library.<br />
<br />
<strong>Conclusion</strong><br />
<h4>In summary, you want to use <em>mysqlnd</em> now and in the future.</h4><br />
<hr />
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2017-07-01T08:05:47Zwfwcomment.php?cid=1190rss.php?version=1.0&type=comments&cid=119centoslinuxmysqlmysqlndphpyumMore git prompt - Does it work on a Mac?
archives/118-More-git-prompt-Does-it-work-on-a-Mac.html
So a few years ago I <a href="http://www.gizmola.com/blog/archives/113-Showing-your-git-branch-in-your-shell-prompt.html" title="Custom Git aware shell prompt">wrote this article</a> about setting a custom shell prompt that is "Git aware" and shows you your current branch.<br />
<br />
The question came up as to whether or not this works on a Mac under OS/X. <br />
<br />
<em>I have always advocated avoiding things like WAMP or MAMP because I don't like a bunch of services running on my workstation. I prefer using virtualization to run a *nix distro matching whatever target deployment server I'm going to run under. VMWare, Virtualbox etc. along with the popularity of Vagrant and Docker have tremendous advantages over something like MAMP in my experience. You start the environment when you need it, and stop it when you don't, and there's no problem having 5 different VM's with different stacks and php versions.</em><br />
<br />
For this reason, I have never been all that concerned with setting a git aware shell prompt up on my macbook. But as it's a *nix-like operating system, it has the basics you need to make the shell prompt code work, albeit with 2 required tweaks.<br />
<br />
First you have to edit the /etc/profile script so that it will look for and read scripts in an /etc/profile.d directory. sudo vi, nano or whatever you want to edit the /etc/profile script and add this at the bottom:<br />
<br />
<div class="bash geshi" style="text-align: left"><br /><span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile.d<span style="color: #000000; font-weight: bold;">/*</span>.sh ; <span style="color: #000000; font-weight: bold;">do</span><br />        <span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">"<span style="color: #007800;">$sh</span>"</span> <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #000000; font-weight: bold;">&&</span> . <span style="color: #ff0000;">"<span style="color: #007800;">$sh</span>"</span><br /><span style="color: #000000; font-weight: bold;">done</span><br /><span style="color: #7a0874; font-weight: bold;">unset</span> <span style="color: #c20cb9; font-weight: bold;">sh</span><br /> </div><br />
<br />
This is simple bourne shell code to read in scripts in the /etc/profile.d directory when you login to a shell. It is a system-wide script, so when you change this, you change it for all users on the system.<br />
<br />
Now you just have to create the /etc/profile.d directory.<br />
<br />
<div class="bash geshi" style="text-align: left"><br /><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>profile.d<br /> </div><br />
<br />
Once this is done, you can use the same simple method <a href="http://www.gizmola.com/blog/archives/113-Showing-your-git-branch-in-your-shell-prompt.html" title="Showing your git branch in your shell prompt">described in the original article</a>.<br />
<br />
<br />
<br />
GizmoLA.comnospam@example.com (David Rolston)
Linux, 2016-06-16T20:41:09Zwfwcomment.php?cid=1180rss.php?version=1.0&type=comments&cid=118gitmacosxFixing PHP short open tags
archives/117-Fixing-PHP-short-open-tags.html
<!-- s9ymdb:258 --><img class="serendipity_image_left" width="245" height="379" src="uploads/images/findreplace.jpg" title="Find and replace in Eclipse PDT" alt="Find and replace in Eclipse PDT" />A PHP block is started with the tag <strong><?php</strong>. However, there is also an alternative known as a "<em>short open tag"</em> which is to only use <strong><?</strong><br />
<br />
The problem with using short open tags is that they conflict with xml parsers and for that reason, support for short open tags has to be enabled. By default, it's disabled and enabling deprecated features may be impossible if hosts don't allow it. <br />
<br />
Every so often you may come upon a code base that was written using short open tags. <br />
<br />
Often people are first confronted with this problem when they have a legacy code base, and either move it to a new server or upgrade php only to find that the site is spewing errors and no longer functional. In a worse case scenario portions of your php code will be plainly visible to end users due to the fact that the php parser is no longer parsing those blocks and simply returning them as html text.<br />
<br />
There are a number of different approaches you can take to solve this problem. First you can <a href="http://php.net/manual/en/language.basic-syntax.phptags.php">turn on the support for short open tags</a>, but as I mentioned previously, this is not recommended. <br />
<br />
<a class="block_level" href="archives/117-Fixing-PHP-short-open-tags.html#extended">Continue reading "Fixing PHP short open tags"</a>
GizmoLA.comnospam@example.com (David Rolston)
Web Tech, 2015-03-22T16:47:37Zwfwcomment.php?cid=1170rss.php?version=1.0&type=comments&cid=117eclipsephpregexshort open tagshort open tagsHow I found symbolic links for gitignore with find and cut
archives/116-How-I-found-symbolic-links-for-gitignore-with-find-and-cut.html
I was cleaning up a directory of old files for addition to git, and I came across a bunch of symlinks to a completely different codebase. In this particular case it was a wordpress blog that had a series of its files linked into the webroot of the site, that existed in an entirely different directory. I didn't want these files in the git repo. <br />
<br />
Finding all the symlink files is easy enough.<br />
<br />
<div class="bash geshi" style="text-align: left"><br /><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>root<br /> </div><br />
<br />
The find command gives us an easy way to get all symlink files:<br />
<br />
<div class="bash geshi" style="text-align: left"><br /><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> l<br /> </div><br />
<br />
But that's just a start -- we have to get these into the .gitignore file. <a class="block_level" href="archives/116-How-I-found-symbolic-links-for-gitignore-with-find-and-cut.html#extended">Continue reading "How I found symbolic links for gitignore with find and cut"</a>
GizmoLA.comnospam@example.com (David Rolston)
Linux, 2014-09-03T05:14:50Zwfwcomment.php?cid=1160rss.php?version=1.0&type=comments&cid=116Battle.net error code BLZBNTBNA00000640 (1201)
archives/115-Battle.net-error-code-BLZBNTBNA00000640-1201.html
<blockquote>Whoops! Hmm, something went wrong with a security certificate.</blockquote><br />
<a class="serendipity_image_link" title="Whoops!" href='uploads/images/ScreenShot2014-07-27at1.19.06PM.png' onclick="F1 = window.open('/blog/uploads/images/ScreenShot2014-07-27at1.19.06PM.png','Zoom','height=1787,width=2643,top=-436,left=-594,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes'); return false;"><!-- s9ymdb:255 --><img class="serendipity_image_left" width="110" height="74" src="uploads/images/ScreenShot2014-07-27at1.19.06PM.tn.png" title="Whoops!" alt="Whoops!" /></a><br />
Recently Conor has been playing WoW and we came across an issue where the battle.net client displays this error rather than the latest Blizzard news.<br />
<br />
I think it's safe to assume that Blizzard used an embedded web browser control for this section of the application, and most if not all of the recommended steps they provide (restarting battle.net, reinstalling, etc.) aren't going to fix the underlying problem, which has to do with SSL certificate validation going on in the requested page. What did actually fix this under OSX, was deleting the certificate in question from the OSX keychain. Read the rest of this for the how to. <a class="block_level" href="archives/115-Battle.net-error-code-BLZBNTBNA00000640-1201.html#extended">Continue reading "Battle.net error code BLZBNTBNA00000640 (1201)"</a>
GizmoLA.comnospam@example.com (David Rolston)
Games, 2014-08-04T16:01:35Zwfwcomment.php?cid=1150rss.php?version=1.0&type=comments&cid=115battle.netblzbntbna00000640