<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
    <channel>
        <title>Web-Site-Scripts.com - Troubleshooting</title>
        <link>https://www.web-site-scripts.com/knowledge-base/category/74</link>
        <description><![CDATA[Root / KnowledgeBase Manager Pro / Troubleshooting]]></description>
        <language>en-us</language>
        <generator>KnowlageBase RSS Generator</generator>

         
                <item>
                        <title>I get occasional "Connection Lost" message</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00742</link>
                                    <description><![CDATA[<p>Usually "Connection Lost" message is shown if an error occurred. Mostly the error is related to the server configuration (IIS, PHP, Apache, etc.).</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00742/connection-lost.PNG" style="border-width: 0px; " title="" alt="" border="0"><br></p><p>The best way to troubleshoot what caused it is to enable the <a href="ARTICLE_URL#532##AA-00571#" target="">error log and try to reproduce the issue</a>.</p><p>Sometimes though the log wouldn't help. It may happen if the error happened in your browser, rather than on the server, or the error was so&nbsp;unexpected&nbsp;that PHP was not able even to write it down.</p><p>This article contains solutions to all errors that do not produce any records in the log.</p><h2>If You're Using PHP v5.3.9+</h2><p>PHP v5.3.9 introduced a new setting&nbsp;max_input_vars, which is set to 1000 by default. This is less than required by KMP, so you may see the "Connection Lost" message occasionally.</p><p>To check if is it issue you're having, go to the Articles &gt; Articles &amp; Categories page in the KMP admin area and press F5 on your keyboard. If you get "Connection Lost", you can be pretty sure that you need to fix this setting.</p><p>If you're using PHP v5.3.9 or higher (and under certain circumstances it may occur on PHP v5.3.6+ as well), you can be 100% sure that you need to do this:</p><p>1. Open the php.ini file (PHP configuration file)</p><p>2. Find the "max_input_vars" setting and set it to 2000:</p><p></p><div class="preformatted">
<div class="preformattedContent">
max_input_vars = 2000</div>
</div>
<p>If you do not see this setting, feel free to add it and the end of the file.</p><p>3. Save php.ini.</p><p>4. &nbsp;Restart the web server (just restart IIS or Apache; there is no need to restart the operation system).</p>This issue shouldn't happen again.<p></p>]]></description>
                                    <pubDate>Tue, 06 Nov 2012 19:02:25 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00742</guid>
                    </item>
                <item>
                        <title>Firefox crashes when I go to Articles &#x26; Categories section</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00708</link>
                                    <description><![CDATA[<p><div class="info">
<div class="infoHeader">Firefox 12 with the fix is available already!</div>
<div class="infoContent">
<p>
Firefox 12 doesn't longer have this issue and it has been released already. To solve this issue, simply <a href="http://www.mozilla.org/en-US/firefox/fx/" target="">update your Firefox</a>!</p><p>If you cannot update Firefox for some reason, you can still use the workaround described below.</p></div></div></p><p>There was an issue introduced in Firefox v10. When you're using Firefox v10 or higher in the admin area of KMP, it crashes on Articles &amp; Categories page (and sometimes on some other pages).</p><p>There is a simple workaround that helps you to keep using Firefox v10 or v11 with KMP. You just need to adjust one of the Firefox options (in fact, disable one of the things that improves performance a bit, which is not working properly at the moment):</p><h2>The Workaround</h2><p>1. Type "about:config" in Firefox address bar and press Enter.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/about-config.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>2. It will show a confirmation. Don't worry, click "I'll be careful...". We know what we're doing.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/confirmation.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>3. You'll see a large list of under-the-hood options. Copy this to the filter field and wait a second:&nbsp;<b>javascript.options.typeinference</b></p><p>It will show you exactly one option:</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/typeinference.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>4. Double-click on it to switch it to "false":</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/typeinference-false.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>5. Now close all Firefox windows and start Firefox again. It should not crash when you work with KMP now.</p><p>Later, when the fix will be included to a Firefox release, you should switch this option back to "true". You will gain about 5-10% performance improvement.</p><h2><br></h2><h2>Some Other Workarounds</h2><p>There are other workarounds that are not so good. You can try them if for some reason the workaround mentioned above doesn't work for you.</p><p></p><ul><li><span style="line-height: 18px;">Use a different browser, for example <a href="https://www.google.com/chrome" target="">Google Chrome</a>&nbsp;or Internet Explorer</span></li><li>Roll-back to an older stable version of Firefox. Firefox 9.0.1 works like a charm. <a href="ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/9.0.1/win32/en-US/Firefox%20Setup%209.0.1.exe" target="">Download Firefox 9.0.1 US for Windows</a>. <a href="ftp://archive.mozilla.org/pub/mozilla.org/firefox/releases/9.0.1/" target="">Other languages and platforms</a>.&nbsp;</li><li>Install and enable Firebug addon for KMP site (see the details below)</li></ul><div><h3><span style="line-height: 20px;">How to install Firebug plugin?</span></h3><p><span style="line-height: 20px;">Firebug addon magically helps Firefox to avoid this issue.&nbsp;</span></p><p><span style="line-height: 20px;">Install Firebug from <a href="https://addons.mozilla.org/en-US/firefox/addon/firebug/" target="">its page on the Mozilla website</a>. Restart Firefox.</span></p><p><span style="line-height: 20px;">When it is installed and Firefox is restarted, open the KMP admin area page.</span></p><p><span style="line-height: 20px;">Then click the Firebug button in the right top corner.</span></p><p><span style="line-height: 20px;"><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/enable-firebug.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></span></p><p><span style="line-height: 20px;">Click the arrow next to the Console button at the bottom and make sure that the checkbox is selected next to "Enabled" option.</span></p><p><span style="line-height: 20px;"><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00708/enable-console.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></span></p><p><span style="line-height: 20px;">Press F5 and it should now working properly.</span></p></div><p></p>]]></description>
                                    <pubDate>Fri, 17 Feb 2012 15:18:14 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00708</guid>
                    </item>
                <item>
                        <title>Email headers are shown within the email body</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00707</link>
                                    <description><![CDATA[<p>It happens because the mail program on the server replaces \n (the new line character) with \r\n (carriage return + new line character). This behavior is common for old versions of mail programs. KMP ends each line in its email messages with \r\n (it is correct behavior) and then the mail program makes the mentioned replacement and it becomes \r\r\n which gives you an extra empty line. This is why email headers are shown in the email body (two new lines define the end of the headers by convention).</p><p>If you're not plnning to update the mail program, there is a workaround that you can use. Simply open this file under the KMP folder:</p><p>\admin\application\config\config.php</p><p>and search for this setting:</p><p><div class="preformatted">
<div class="preformattedContent">
$config['mail_newline'] = "\r\n";</div>
</div>
<p><p>By default it is set to \r\n.</p><p>And you need to change it to \n:</p><p><div class="preformatted">
<div class="preformattedContent">
$config['mail_newline'] = "\n";</div></div>After saving the file, it should now work correctly.</p></p></p>]]></description>
                                    <pubDate>Wed, 08 Feb 2012 10:31:57 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00707</guid>
                    </item>
                <item>
                        <title>Cron troubleshooting guide (for Windows)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00702</link>
                                    <description><![CDATA[<p>If you haven't setup a cron job yet, you can do this now.&nbsp;<a href="ARTICLE_URL#444##AA-00483#" target="">How to setup a cron job?</a>
</p>
<p>If you're not sure if the cron job is running on your server, use this guide to troubleshoot this issue.</p>
<p>First of all, check if that is really the case - use <a href="ARTICLE_URL#651##AA-00690#" target="">this guide to check if cron job is set up and running</a>. Once you are sure that cron doesn't work, proceed with the troubleshooting steps below to find out what caused that and how to fix it.</p>
<p></p>
<ul><li>If the knowledge base opens via https only</li><li><a href="#1-minute" target="" style="line-height: 18px; ">Check if the cron job is setup to run each 1 minute</a></li><ul><li><a href="#1-minute-2003" target="">Windows XP/2003</a></li><li><a href="#1-minute-2008" target="">Windows 7/2008</a></li></ul><li><span style="line-height: 18px;"><a href="#cron-vbs" target="">Try to run cron from the command line</a></span></li><li><span style="line-height: 18px; "><a href="#blocked" target="">Ensure that cron.vbs and php.exe are not blocked</a></span>
</li><li><span style="line-height: 18px;"><a href="#slash" target="">Check if the URL to KMP has a trailing slash</a></span></li><li><a href="#spaces" target="">If paths contain spaces</a></li><li><a href="#error-log" target="">Enable the error log</a></li></ul>
<h2><a name="ssl" ></a>If the knowledge base opens via https only</h2><p>If you're using an SSL certificate for secure connection (https), you need to <a href="ARTICLE_URL#616##AA-00655#" target="">add two lines to the cron.php file</a>.</p><p>It is easy to check if you're using SSL. Simply take a look at the browser address bar when a knowledge base page is opened. If it starts with "https://", then you're using SSL. If you've got "http://" there, then you're not.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/https.PNG" alt="" title="" width="348" height="114" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p>
<p></p>
<h2><a name="1-minute" ></a>Check if the cron job is setup to run each 1 minute</h2>
<p>Remember&nbsp;that if cron job runs<span style="background-color: rgb(255, 255, 255); ">&nbsp;<span class="hps">less frequently than once</span>&nbsp;<span class="hps">per minute,&nbsp;<acronym class="term" title="KnowledgeBase Manager Pro" style="border-bottom-width: 1px !important; border-bottom-style: dotted !important; border-bottom-color: rgb(0, 0, 0) !important; ">KMP</acronym>&nbsp;will still display that "You have to setup cron script..." message. So cron might actually be running correctly, just not as often as expected. Use the instructions below that match your Windows version to check how often cron is set to run on your system.</span></span></p>
<h3><a name="1-minute-2003" ></a>Windows XP/2003</h3>
<p>Go to Start &gt; Control Panel &gt; Scheduled Tasks.
</p>
<p>Right-click on the KMP cron task and click Properties.</p>
<p>Then click the Schedule tab on the window with cron task properties. You'll see the schedule.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/schedule.png" title="" alt="" border="0" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "></p>
<p>Click the "Advanced" button.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/schedule-advanced.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Check that the Start Date is in the past and that all other settings are the same as on the screenshot above. Pay attention to the part marked on the screenshot. It is recommended to repeat the task every 1 minute.</p>
<p>Save the new settings and hold on a minute. Then <a href="ARTICLE_URL#651##AA-00690#" target="">check if cron job is now working</a>. If it still doesn't work, proceed to the <a href="#cron-vbs" target="">next step</a>.</p>
<h3><a name="1-minute-2008" ></a>Windows 7/2008</h3>
<p>Open Control Panel and type "Schedule Tasks" into the search field.
</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/schedule-tasks.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>You will see the "Schedule Tasks" link. Click on it.
</p>
<p>Find the KMP cron task, right click on it and select Properties.</p>
<p>Click on the Triggers tab.</p>
<p>Select the trigger and click Edit.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/trigger.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Check that the Start date is in the past and that all other settings are the same as on the screenshot above. Pay attention to the part marked on the screenshot. It is recommended to repeat the task every 1 minute. Since there is no option "1 minute" in the selection list, it is a common issue when users select "5 minutes" instead.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/1-minute.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>You can simply type "1 minute" to the field and it will be accepted as a valid repetition period.</p>
<p>Save the new settings and hold on a minute. Then&nbsp;<a href="ARTICLE_URL#651##AA-00690#" target="">check if cron job is now working</a>. If it still doesn't work, proceed to the&nbsp;next step.
</p>
<h2><a name="cron-vbs" ></a>Try to run cron from the command line</h2>
<p>Now let's check if the cron.vbs file is valid.</p>
<p>Go to Start &gt; All Programs &gt; Accessories &gt; Command Prompt.</p>
<p>Copy-paste the full path to php.exe with the two parameters from the cron.vbs (that is what you've got between quotation marks on the second line after <span style="background-color: rgb(255, 255, 255);">WinScriptHost.Run)</span>.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/cron-cmd.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Valid command usually doesn't generate any input like shown on the screenshot. So if you do not see any errors, it should be OK and you can proceed to the next step.</p>
<p>If an error has been displayed and you understand what the error means (for instance it may tell you that the path to php.exe is incorrect - so you need to adjust it), try to fix it. Then try to launch the updated command once again. If the error message is unclear, make a shot of your screen (you might need to send it to us for a research) and proceed to the next step. We've got some common errors explained below along with appropriate solutions.</p>
<h2><a name="blocked" ></a>Ensure that cron.vbs and php.exe are not blocked</h2>
<p>Open properties of the php.exe file and cron.vbs and make sure that these files are not blocked.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00702/blocked.PNG" alt="" title="" width="402" height="207" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p>
<p>If one of these files is blocked, click the "Unblock" button to unlock it.
</p>
<h2><a name="slash" ></a>Check if the URL to KMP has a trailing slash</h2>
<p>Open the cron.vbs and check if the last parameter on the second line - the URL to KMP has a trailing slash.</p>
<p>This is&nbsp;<b>correct</b>:<br></p>
<div class="preformatted"><div class="preformattedContent">WinScriptHost.Run "C:\PHP\php.exe c:\inetpub\wwwroot\kmp\admin\CRON\cron.php&nbsp;<span style="background-color: rgb(255, 255, 255);">http://<span style="line-height: 16px; ">www.yourwebsite.com</span>/kmp</span><span style="background-color: rgb(255, 255, 0);">/</span>", 0</div></div>
<p></p>
<p>This is&nbsp;<b>incorrect</b>:<br></p>
<div class="preformatted"><div class="preformattedContent">WinScriptHost.Run "C:\PHP\php.exe c:\inetpub\wwwroot\kmp\admin\CRON\cron.php&nbsp;<span style="background-color: rgb(255, 255, 255);">http://<span style="line-height: 16px; ">www.yourwebsite.com</span>/kmp</span>", 0</div></div>
<p>&nbsp;If the trailing slash is missing, add it, save the cron.vbs file and check if cron is working normally now.</p>
<h2><a name="spaces" ></a>If paths contain spaces</h2>
<p>If the path to php.exe or to cron.php contains spaces, it is necessary to take that path into double quotes:</p>
<p></p>
<div class="preformatted" style="border-color: initial; "><div class="preformattedContent"><div class="preformattedContent">Set WinScriptHost = CreateObject("WScript.Shell")</div><div class="preformattedContent">WinScriptHost.Run <span style="background-color: rgb(141, 179, 226);">"</span><span style="background-color: rgb(255, 255, 0); ">""</span>C:\Program<span style="background-color: rgb(255, 255, 255);"> </span>Files\PHP\php.exe<span style="background-color: rgb(255, 255, 0); ">""</span>&nbsp;<span style="background-color: rgb(146, 208, 80); ">""</span>C:\Inetpub\Some<span style="background-color: rgb(255, 255, 255);"> </span>Folder\kmp\admin\CRON\cron.php<span style="background-color: rgb(146, 208, 80); ">""</span>&nbsp;http://<span style="line-height: 16px; ">www.yourwebsite.com</span>/kmp/<span style="background-color: rgb(141, 179, 226);">"</span>, 0</div><div class="preformattedContent">Set WinScriptHost = Nothing</div></div></div>
<p>The matching pairs of quotes are shown in the same color in the example above for your convenience.</p>
<h2><a name="error-log" ></a>Enable the error log</h2>
<p><a href="ARTICLE_URL#532##AA-00571#" target="">Enable the error log</a>, then try to run cron job once again. Check if anything has been added to the log file, which is located in the /admin/tmp/ directory.</p>
<p style="line-height: 18px; ">If this guide haven't helped or you have any questions feel free to contact our <a href="http://www.web-site-scripts.com/knowledge-base/askQuestionForm" target="">Support Team</a>. Please attach the error log file and the screenshot of the output produced by the cron.vbs file to your email. This will help us to resolve the issue faster. Thank you.</p>
<p></p>
]]></description>
                                    <pubDate>Wed, 28 Dec 2011 17:51:09 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00702</guid>
                    </item>
                <item>
                        <title>PDF export library issues</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00642</link>
                                    <description><![CDATA[<p>This article helps to troubleshoot possible issues with library that provides PDF export feature.</p>
<p></p>
<p></p>
<ul><li><span style="line-height: 18px; "><a href="#black-rectangles" target="">Black rectangles instead of text</a></span></li><li><a href="#chinese" target="">Chinese characters are not displayed properly (Linux)</a></li><li><a href="#japanese" target="">Japanese characters are not displayed properly (Linux)</a></li><li><span style="line-height: 18px; "><a href="#installed-doesntwork" target="">It says that PDF library is installed, but it doesn't work at all (Linux)</a></span></li><li><span style="line-height: 18px; "><a href="#lost-images-https" target="">Lost images in exported PDF on https:// sites (Linux)</a></span></li><li><a href="#lost-images-win" target="">Lost images in exported PDF and slow performance (Windows)</a></li><li><span style="line-height: 18px; "><a href="#error-null" target="">whkhtmltopdf library installed with following errors: null</a></span></li></ul>
<p></p>
<p></p>

<p></p>
<h2><a name="black-rectangles" ></a>Black rectangles instead of text (Linux/UNIX)</h2>
<p>You may get black lines instead of text in generated PDFs.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00642/black-rectangles.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>This means that you do not have proper fonts installed on the server.</p>
<p></p>
<p>Extract the <b>ttf-dejavu</b> folder from the attached <b>ttf-dejavu.zip</b> archive and put it to:</p>
<p></p>
<div class="preformatted">
<div class="preformattedContent">/usr/share/fonts/truetype/</div>
</div>
<p>so that you would have the following files (full paths):</p>
<p></p>
<p></p>
<div class="preformatted">
<div class="preformattedContent">
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; ">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; ">/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; ">...</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; ">etc.</p>
</div>
</div>
<h2><a name="chinese" ></a>Chinese characters are not displayed properly (Linux)</h2>
<p>This means that you do not have proper fonts installed on the server.</p>
<p>Extract the two&nbsp;font files&nbsp;from the attached <b>ipa.zip</b> archive and put it to:</p>
<p></p>
<div class="preformatted" style="border-color: initial; "><div class="preformattedContent">/usr/share/fonts/truetype/</div></div>
<p>so that you would have the following files (full paths):</p>
<p></p>
<p></p>
<div class="preformatted" style="border-color: initial; "><div class="preformattedContent">
<p></p><p>/usr/share/fonts/truetype/arphic/bkai00mp.ttf</p><p>/usr/share/fonts/truetype/arphic/bsmi00lp.ttf</p><p>/usr/share/fonts/truetype/arphic/gbsn00lp.ttf</p><p></p></div></div>
<h2><a name="japanese" ></a>Japanese characters are not displayed properly (Linux)</h2>
<p>This means that you do not have proper fonts installed on the server.</p>
<p>Extract the&nbsp;<b>arphic&nbsp;</b>folder from the attached&nbsp;<b>arphic.zip</b>&nbsp;archive and put it to:</p>
<p></p>
<div class="preformatted" style="border-color: initial; "><div class="preformattedContent">/usr/share/fonts/truetype/</div></div>
<p>so that you would have the following files (full paths):</p>
<p></p>
<p></p>
<div class="preformatted" style="border-color: initial; "><div class="preformattedContent">
<p></p><p>/usr/share/fonts/truetype/ttf-japanese-gothic.ttf</p><p>/usr/share/fonts/truetype/ttf-japanese-mincho.ttf</p><p></p>
</div></div>
<p></p>
<h2><a name="installed-doesntwork" ></a>It says that PDF library is installed, but it doesn't work at all (Linux/UNIX)</h2>
<p>Check if you have uploaded the right version x86 or x64 of the library. You can download each version <a href="ARTICLE_URL#564##AA-00603#" target="">here</a>.</p>
<p>Try to run wkhtmltopdf from the command line (e.g. SSH). Check if it returns any errors.</p>
<p></p>
<div class="preformatted">
<div class="preformattedContent"><div class="preformattedContent">$ ./wkhtmltopdf</div><div class="preformattedContent">/www/admin/application/libraries/export/wkhtmltopdf:</div><div class="preformattedContent">error while loading shared libraries: libfontconfig.so.1: cannot open shared</div><div class="preformattedContent">object file: No such file or directory</div></div>
</div>
<p>If you get the error shown above, it means that you need to install X11 (the xorg package). For Ubuntu it can be done by running the following command:</p>
<p></p>
<div class="preformatted">
<div class="preformattedContent">
sudo apt-get install xorg<br></div>
</div>
<p>If you're using some other distribution, check its documentation.</p>
<p>Please note that it doesn't require X11 to run. It is enough to have it installed because wkhtmltopdf library relies on some packages (e.g. libfontconfig) included to X11.</p>
<h2><a name="lost-images-https" ></a>Lost images in exported PDF on https:// sites (Linux)</h2>
<p></p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 13px !important; line-height: 1.4em; ">Exported PDF file may have broken images if you're using Knowledgebase Manager Pro via https://</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 13px !important; line-height: 1.4em; ">It happens because the wkhtmltopdf library that generates PDF files may not be able to access images via https links.</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 13px !important; line-height: 1.4em; ">To resolve this please install "openssl-devel" package on the server (Linux). There are no reported issues of this kind on Windows systems.</p><h2><a  name="lost-images-win"></a>Lost images in exported PDF and slow performance (Windows)</h2><p>If there are additional restrictions to access the front-end page of the knowledge base (for example <a href="http://en.wikipedia.org/wiki/Basic_access_authentication" target="_blank" rel="nofollow">Basic access authentication</a>), it is possible that wkhtmltopdf tool will not be able to access images. In this case it will work slowly in futile attempts to load images. The solution to this is to remove the restrictions to the knowledge base pages.</p><p>Please note that access restrictions that you set in KMP user interface don't cause this issue. This can be caused only by web site configuration, firewall settings, etc.</p>
<h2><a name="error-null" ></a>whkhtmltopdf library installed with following errors:&nbsp;null</h2>
<p>When you go to Administration &gt; General Settings &gt; PDF Export, you get this error:</p>
<p></p>
<div class="preformatted">
<div class="preformattedContent"><div class="preformattedContent">whkhtmltopdf library installed with following errors:&nbsp;</div><div class="preformattedContent">null</div></div></div>
<p></p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00642/null.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Please check your <a href="ARTICLE_URL#577##AA-00616#" target="">phpinfo page</a>. Probably "passtru" function which allows PHP to run shell commands is disabled in PHP settings.</p>
<p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00642/passthru.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p>
<p>Please enable this function by removing it from the list of disable_functions in php.ini to resolve the issue.</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
]]></description>
                                    <pubDate>Thu, 17 Mar 2011 14:03:22 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00642</guid>
                    </item>
                <item>
                        <title>Languages are not saved</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00613</link>
                                    <description><![CDATA[<p>If you open a language in Administration &gt; Interface Languages, change some labels, save &amp; close it, and when you open it again - none of your changes applied, this article will help.</p><p>It is most probable that you have Suhosin pack installed over your PHP. It applies certain limits on server requests. Please adjust the following parameters in PHP settings to resolve the problem:</p><p><div class="preformatted">
<div class="preformattedContent"><div class="preformattedContent">suhosin.post.max_value_length 500000</div><div class="preformattedContent">suhosin.request.max_value_length 500000</div><div class="preformattedContent">suhosin.request.max_vars 4000</div><div class="preformattedContent">suhosin.post.max_vars 4000</div></div>
</div>
<p><br></p><br></p>]]></description>
                                    <pubDate>Thu, 23 Dec 2010 16:21:07 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00613</guid>
                    </item>
                <item>
                        <title>Why "localhost" is always refered in the emails sent by KMP?</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00609</link>
                                    <description><![CDATA[<p>It happens that an email that contains a link to an article sent by KMP has URL that you cannot open. For example it has "localhost" or "127.0.0.1" as domain name. It is possible due to KMP doesn't have a hard-coded setting that has current domain name. Instead it detects the domain name each time on the fly. This allows you to simply move KMP to another domain, or use multiple domain aliases.</p><p>There are two solutions to this problem. Right solution for you depend from what emails have incorrect links:</p><p></p><ul><li><span style="line-height: 16px; "><a href="#manually" target="">Emails sent <b>manually</b></a> (e.g. "Email to a Friend" email)</span></li><li><span style="line-height: 16px; "><a href="#automatically" target="">Emails sent <b>automatically</b></a> (e.g. "Article Subscription" email)</span></li></ul><p></p><h2><a name="manually" ></a>Emails sent manually</h2><p>When you send an email from a KMP page manually (e.g.: via "Email to a Friend" form), &nbsp;it inserts the same hostname to the URL as one in the address bar of your browser. For example if you're sending an email from a page on web-site-scripts.com, it will have the article URL with "web-site-scripts.com" domain.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00609/email-friend-url.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"></p><p>However, if you opened KMP from a local server ("localhost"), the email will have URL with "localhost" for domain, e.g.:</p><p></p><div class="preformatted">
<div class="preformattedContent">http://<span style="background-color: rgb(255, 255, 0);">localhost</span>/knowledge-base/article/AA-00602/11/1.-General-overview.html</div>
</div>
<p></p><h2><a name="automatically" ></a>Email sent automatically</h2><p>The domain part of the URL is taken from the second parameter of the <a href="ARTICLE_URL#444##AA-00483#" target="">cron job command</a>.</p><p>e.g. for Linux/Unix:</p><p></p><div class="preformatted">
<div class="preformattedContent">
* * * * * /usr/bin/php /usr/www/kmp/admin/CRON/cron.php http://<span style="background-color: rgb(255, 255, 0);">localhost</span>/<br></div>
</div>
<p>e.g. for Windows (cron.vbs):</p><p></p><div class="preformatted">
<div class="preformattedContent">
WinScriptHost.Run "C:\PHP\php.exe c:\inetpub\wwwroot\kmp\admin\CRON\cron.php http://<span style="background-color: rgb(255, 255, 0);">localhost</span>/", 0<br></div>
</div>
<p>Solution is the same for all systems - replace "localhost" with correct domain name:</p><p></p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 12px; line-height: 1.4em; ">e.g. for Linux/Unix:</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 12px; line-height: 1.4em; "></p><div class="preformatted" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color: initial; font-family: Courier; font-size: 12px; line-height: 13px; "><div class="preformattedContent" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(240, 240, 240); font-size: 12px; ">* * * * * /usr/bin/php /usr/www/kmp/admin/CRON/cron.php http://<span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; background-color: rgb(255, 255, 0); ">www.yourwebsite.com</span>/<br></div></div><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 12px; line-height: 1.4em; ">e.g. for Windows (cron.vbs):</p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 17px; margin-left: 0px; font-size: 12px; line-height: 1.4em; "></p><div class="preformatted" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-color: initial; font-family: Courier; font-size: 12px; line-height: 13px; "><div class="preformattedContent" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; overflow-x: hidden; overflow-y: hidden; background-color: rgb(240, 240, 240); font-size: 12px; ">WinScriptHost.Run "C:\PHP\php.exe c:\inetpub\wwwroot\kmp\admin\CRON\cron.php http://<span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: normal; background-color: rgb(255, 255, 0); ">www.yourwebsite.com</span>/", 0</div></div><p></p><p></p><p></p><p></p><p></p>]]></description>
                                    <pubDate>Mon, 20 Dec 2010 16:42:40 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00609</guid>
                    </item>
                <item>
                        <title>404 Not Found error on a shared hosting (common for GoDaddy)</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00587</link>
                                    <description><![CDATA[<p>If you have <a href="ARTICLE_URL#368##AA-00407#" target="">tried to solve the "404 Page Not Found" problem</a> and you're using a GoDaddy shared hosting, check the instructions below. Also this problem may happen on other misconfigured hostings. This error may occur on Linux+Apache systems with PHP plugged in to Apache via FastCGI interface.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/Shared/KMP/Installation and Configuration/ci404.png" alt="" title="" width="546" height="122" border="0" hspace="0" vspace="0" align="" style="margin-right: 0px; margin-left: 0px; margin-bottom: 0px; margin-top: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; "><br></p>
<p>
</p><p>Correct solution to this issue is:</p>
<p></p><ol><li>Enable the ExtendedStatus option in the httpd.conf file (Apache configuration file):<br><div class="preformatted">
<div class="preformattedContent">ExtendedStatus On</div></div></li><li>And set cgi.fix_pathinfo to 1 in the php.ini (PHP configuration file):<br><div class="preformatted">
<div class="preformattedContent">
cgi.fix_pathinfo=1</div></div></li></ol>
<p></p><div class="info">
<div class="infoHeader">Additional Info on This Issue</div>
<div class="infoContent">
<p></p><p>cgi.fix_pathinfo provides real PATH_INFO/PATH_TRANSLATED support for CGI. PHP's previous behavior was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not care what PATH_INFO is. For more information on PATH_INFO, see the cgi specifications. Setting this to 1 causes PHP CGI to fix its paths to conform to the specification.</p><p>However while ExtendedStatus is Off in Apache settings, this option doesn't work.</p><p></p>
</div>
</div>
<p>You can ask GoDaddy to enable these options, and if they will refuse to do so, you can use a workaround:</p><p></p>
<p>Simply alter the <b>\admin\application\config\config.php</b> file again and change uri_protocol to QUERY_STRING:</p>
<p></p><div class="preformatted">
<div class="preformattedContent">
$config['uri_protocol'] = "QUERY_STRING";</div></div><p></p>
<p>In this case you would need to check this setting each time you update KMP, because this file can be overwritten and uri_protocol would be set back to AUTO.</p>
<p></p>]]></description>
                                    <pubDate>Wed, 24 Nov 2010 11:53:10 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00587</guid>
                    </item>
                <item>
                        <title>LDAP Troubleshooting</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00572</link>
                                    <description><![CDATA[<p>If you&nbsp;experience the following&nbsp;problems use this troubleshooting guide to resolve them.</p><p></p><ul><li><span style="line-height: 16px; "><a href="#mapping" target="">mapping of KMP and LDAP groups</a></span></li><li><span style="line-height: 16px; "><a href="#login" target="">LDAP users are unable to login to KMP</a></span></li><li><span style="line-height: 16px; "><a href="#login" target="">you cannot import&nbsp;LDAP users&nbsp;to KMP</a></span></li><li><a href="#other" target="">other issues</a></li></ul><p></p><h2><a name="mapping" ></a>Group Mapping Issues</h2><p>If you do not see any groups under the LDAP Group entry in Group Mappings section, this probably means that you have specified incorrect LDAP connection details.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/no-groups.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>Check the following settings first:</p><p></p><ul><li><span style="line-height: 16px;">Allow Follow Referrals</span></li><li><span style="line-height: 16px;">LDAP Version 3</span></li><li><span style="line-height: 16px;">Negotiate TLS</span></li><li><span style="line-height: 16px;">Base DN</span></li><li><span style="line-height: 16px;">Connect Username</span></li><li><span style="line-height: 16px;">Connect Password</span></li></ul><h2><a name="login" ></a>LDAP Users Import or Login Issues</h2><p></p><div class="info">
<div class="infoHeader">To import or not to import</div>
<div class="infoContent">
<p>
Please note that you do not necessarily import users from the LDAP server. If you finished setup connection to the LDAP server and groups mapping,&nbsp;try to login as one of the users from mapped groups. If all settings are correct, you'll be able to login using username and password from the LDAP server. Account in KMP will be created automatically&nbsp;upon login.</p>
</div>
</div>
<p>If you specify OU (Organizational Unit) in Base DN, make sure that LDAP users that you want to import belong to this OU as well as their parent groups. Otherwise, they won't be imported. Try to remove OU to check if that's the cause of the problem.</p><p></p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/ou.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><p>Remember that LDAP users that you want to import must have all these required attributes: account name, first name, last name, email. Otherwise they won't be imported. Make sure that attributes here in KMP preferences (LDAP&nbsp;Synchronization&nbsp;Preferences) match user attributes on the LDAP server.</p><p><img src="http://www.web-site-scripts.com/knowledge-base/admin/media_store/2/AA-00572/sync.png" style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; " title="" alt="" border="0"><br></p><h2><a name="other" ></a>Other issues</h2><p>KMP has built-in log for all LDAP operations, which helps to troubleshoot any issue with connection to your LDAP server.</p><p>To enable the log, edit the <b>/admin/config.inc.php</b> file and change LOG_LDAP_OPERATIONS flag from "FALSE" to "TRUE":</p><p></p><div class="preformatted">
<div class="preformattedContent">
define('LOG_LDAP_OPERATIONS', <span style="background-color: rgb(255, 255, 0);">TRUE</span>);<br></div>
</div>
<p>Then try to reproduce the issue (try connecting to the LDAP server if you have an issue with connection, or try to import LDAP users if you have an issue with users import).</p><p>Log file will be generated and saved to the <b>/admin/tmp/</b> folder in this format:&nbsp;<i>ldap_log-YYYY-MM-DD.txt</i></p><p>You can now open this file and check for errors or <a href="http://www.web-site-scripts.com/knowledge-base/askQuestionForm" target="">send it to us for investigation</a>.</p><p></p>]]></description>
                                    <pubDate>Wed, 17 Nov 2010 18:49:44 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00572</guid>
                    </item>
                <item>
                        <title>Enable error log</title>
                                    <link>https://www.web-site-scripts.com/knowledge-base/article/AA-00571</link>
                                    <description><![CDATA[<p>If you an error occurs when you use KMP, you should report it to our support team.&nbsp;By default errors are not being logged, so the procedure is this:</p><p></p><ol><li>Enable errors logs as described in this article.</li><li>Reproduce&nbsp;the error.</li><li><a href="http://www.web-site-scripts.com/knowledge-base/askQuestionForm" target="">Submit a ticket to support</a> with the problem description and attach the error log (it is saved in /admin/tmp folder).</li></ol><p></p><p>Starting from v5.4.0, you can enable all error logging and reporting from the single configuration file. <a href="ARTICLE_URL#505##AA-00544#" target="">If you're using v5.3.1 or earlier, check another guide</a>.</p><p>First of all you need to open this file: <b>/admin/config.inc.php</b></p><p>You will find a lot of different options at the beginning of this file:</p><p></p><div class="source">
<div class="sourceHeader" style="font-weight: bold;" align="center"><span style="font-weight: normal;"><b>/admin/config.inc.php</b></span></div>
<div class="sourceContent">
<p></p><p></p><p>&nbsp;<font color="#7f7f7f">&nbsp; &nbsp;// --- Debug settings ---</font></p><p><font color="#7f7f7f">&nbsp;&nbsp; &nbsp;// General application debug</font></p><p>&nbsp;&nbsp; &nbsp;define('KMP_DEBUG', 0); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 1 to enable, 0 to disable</p><p>&nbsp;<font color="#7f7f7f">&nbsp; &nbsp;// Database debug</font></p><p>&nbsp;&nbsp; &nbsp;define('DB_DEBUG', FALSE); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// TRUE to enable, FALSE to disable</p><p><br></p><p>&nbsp;<font color="#7f7f7f">&nbsp; &nbsp;// --- &nbsp;Log settings (all logs are saved to the 'tmp' folder here) ---</font></p><p><font color="#7f7f7f">&nbsp;&nbsp; &nbsp;// Write application and database errors and warnings into a log file ('log-%YYYY-MM-DD%.wss.log')</font></p><p>&nbsp;&nbsp; &nbsp;<span style="background-color: rgb(255, 255, 0);">define('LOG_ERRORS', 0);</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color="#7f7f7f">&nbsp;// 1 - turn on logging, 0 - turn off logging</font></p><p>&nbsp;&nbsp; <font color="#7f7f7f">&nbsp;// Write KMP and LDAP server communication log ('ldap_log-%YYYY-MM-DD%.txt')</font></p><p>&nbsp;&nbsp; &nbsp;define('LOG_LDAP_OPERATIONS', FALSE);<font color="#7f7f7f"> // TRUE - turn on logging, FALSE - turn off logging</font></p><p><font color="#7f7f7f">&nbsp;&nbsp; &nbsp;// Write CRON task proccessing log ('cronlog.txt')</font></p><p>&nbsp;&nbsp; &nbsp;define('LOG_CRON_OPERATIONS', FALSE); <font color="#7f7f7f">// TRUE - turn on logging, FALSE - turn off logging</font></p><p>&nbsp;&nbsp;<font color="#7f7f7f"> &nbsp;// Write articles autorelation processing log ('%YYYY-MM-DD_HH-MM-SS%_aid-2.txt')</font></p><p>&nbsp;&nbsp; &nbsp;define('LOG_ARTICLES_AUTORELATION', FALSE); <font color="#7f7f7f">// TRUE - turn on logging, FALSE - turn off logging</font></p><p></p><p></p>
</div>
</div>
<p>The option that you would usually need is&nbsp;<span style="line-height: normal;">LOG_ERRORS, it is&nbsp;</span>highlighted.</p><p>To enable logs, set it to "1":</p><p></p><div class="preformatted">
<div class="preformattedContent">
define('LOG_ERRORS', <span style="background-color: rgb(255, 255, 0);">1</span>);<br></div>
</div>
<p>Try to reproduce the error. After that a log file will be generated in the admin/tmp directory. Its name will include current date and ".log" extension.</p><br><p></p><br><p></p><p><b><br></b></p>]]></description>
                                    <pubDate>Wed, 17 Nov 2010 18:05:10 +0000</pubDate>
                                    <guid>https://www.web-site-scripts.com/knowledge-base/article/AA-00571</guid>
                    </item>
                
    </channel>
</rss>