{"id":1724,"date":"2018-05-07T16:33:57","date_gmt":"2018-05-07T21:33:57","guid":{"rendered":"https:\/\/xlinesoft.com\/blog\/?p=1724"},"modified":"2018-05-08T15:27:54","modified_gmt":"2018-05-08T20:27:54","slug":"troubleshooting-web-applications","status":"publish","type":"post","link":"https:\/\/xlinesoft.com\/blog\/2018\/05\/07\/troubleshooting-web-applications\/","title":{"rendered":"Troubleshooting web applications"},"content":{"rendered":"<p>This article will teach you how to troubleshoot your web applications like a pro. Most of these tips are specific to PHPRunner, ASPRunner.NET and ASPRunnerPro but some of them apply to all web applications. <\/p>\n<h2>General troubleshooting tips<\/h2>\n<p>This is where you start when something doesn&#8217;t work as expected. <\/p>\n<ul>\n<li>Make sure that you run the latest build of the software<\/li>\n<li>Synchronize database and project<\/li>\n<li>Perform a full project build<\/li>\n<li>If you test your project on remote web server make sure you upload all generated files<\/li>\n<li>Clear browser&#8217;s cache. In Chrome or Firefox press Ctrl+Shift+Del to open &#8220;Clear browsing data&#8221; dialog. Choose to delete cached images and files.<br \/>\n<!--more--><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2018\/03\/scr_clear_browsing_data.png\" alt=\"\" width=\"512\" height=\"473\" class=\"alignnone size-full wp-image-1740\" srcset=\"https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2018\/03\/scr_clear_browsing_data.png 512w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2018\/03\/scr_clear_browsing_data-300x277.png 300w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2018\/03\/scr_clear_browsing_data-150x139.png 150w, https:\/\/xlinesoft.com\/blog\/wp-content\/uploads\/2018\/03\/scr_clear_browsing_data-400x370.png 400w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/p>\n<\/li>\n<li>If above doesn&#8217;t help test your app on an alternative web server. For instance, if it doesn&#8217;t work on your web server you can try Demo Account or a built-in web server that comes with the software. This can help you figure out if something is wrong with the project itself or with web server configuration.<\/li>\n<li>Just in case test it using another web browser. Normally clearing browser cache helps to fix issues like this but sometimes your issue can be browser-specific. Also some browser plugins may interfere with your web application functionality. Switching to another browser can help eliminate this possibility. <\/li>\n<li>If you use CDN or a cloud-based service like Azure you may want to create a new project there to quickly test it. Cloud services add their own caching layer so you maybe still looking at an old copy of files even after uploading a changed project. <\/li>\n<\/ul>\n<p>You done all this and nothing helps. Time to dig a bit deeper. <\/p>\n<h2>There is an error message<\/h2>\n<p>You see an error message on the page. This is good, it gives us something to work with. As a first step Google the error message. You will be surprised how often searching for an error message points you in the right direction. <\/p>\n<p>Here is an example:<\/p>\n<pre>Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='<\/pre>\n<p>Searching for this error message points us to this article on <a href=\"https:\/\/stackoverflow.com\/questions\/11770074\/illegal-mix-of-collations-utf8-unicode-ci-implicit-and-utf8-general-ci-implic\">Stackoverflow<\/a>. The best answer offers a few options to fix this issue, but option four is the easiest one. Altering all database tables to use the same collation is an easy fix and requires no changes in the code.<\/p>\n<p>Another error message you nay encounter. <\/p>\n<pre name=\"code\" class=\"text:nocontrols\">\r\nFatal error: Uncaught Error: Class 'ZipArchive' not found in \/home\/groupe\/public_html\/dynaco\/plugins\/PHPExcel\/Writer\/Excel2007.php:226 \r\nStack trace: \r\n#0 \/home\/groupe\/public_html\/dynaco\/include\/export_functions_excel.php(164): PHPExcel_Writer_Excel2007->save('\/home\/groupe\/pu...') \r\n#1 \/home\/groupe\/public_html\/dynaco\/include\/export_functions.php(125): ExportExcelSave('Localisations.x...', 'Excel2007', Object(PHPExcel)) \r\n#2 \/home\/groupe\/public_html\/dynaco\/classes\/exportpage.php(206): ExportToExcel(Object(mysqli_result), 0, Object(eventsBase), Object(RunnerCipherer), Object(ExportPage)) \r\n#3 \/home\/groupe\/public_html\/dynaco\/classes\/exportpage.php(188): ExportPage->exportTo('excel2007', Object(mysqli_result), 0) \r\n#4 \/home\/groupe\/public_html\/dynaco\/classes\/exportpage.php(65): ExportPage->exportByType() \r\n#5 \/home\/groupe\/public_html\/dynaco\/Localisations_export.php(87): ExportPage->process() \r\n#6 {main} \r\nthrown in \/home\/groupe\/public_html\/dynaco\/plugins\/PHPExcel\/Writer\/Excel2007.php on line 226\r\n<\/pre>\n<p>We do not need to search for the whole error message as it refers to specific files and line numbers. Just copy the generic part of this error message. <\/p>\n<pre>Fatal error: Uncaught Error: Class 'ZipArchive' not found in<\/pre>\n<p>The very first result points to <a href=\"https:\/\/stackoverflow.com\/questions\/3872555\/fatal-error-class-ziparchive-not-found-in\">Stackoverflow article<\/a> that provides an answer:<\/p>\n<blockquote><p>For the ZipArchive class to be present, PHP needs to have the zip extension installed.<br \/>\nSee <a href=\"http:\/\/www.php.net\/manual\/en\/zip.installation.php\">this page<\/a> for installation instructions (both Linux and Windows).\n<\/p><\/blockquote>\n<h2>There is no error message<\/h2>\n<p>This one is going to be more complicated. As a first step check if there are any Javascript errors behind the scene. <a href=\"https:\/\/xlinesoft.com\/phprunner\/docs\/troubleshooting_javascript_errors.htm\">This article<\/a> can help. <\/p>\n<h3>Login and security errors<\/h3>\n<p>You enter correct username and password but getting &#8216;Invalid login&#8217; message. A few things may go wrong. <\/p>\n<ul>\n<li>If email account activation is turned on make sure account is activated. Usually there is a column named &#8216;active&#8217; in login table that holds value of 1 for active users.<\/li>\n<li>If password encryption is turned on make sure that password is encrypted. When you turn on this option existing passwords stay in plain text and this is why login may not work.<\/li>\n<li>You use Advanced Security option &#8216;Users can see and edit their own data only&#8217; but users can see all data. Make sure that user doesn&#8217;t belong to an admin group.\n<\/ul>\n<h3>Welcome\/menu page issues<\/h3>\n<p>Login works but menu is missing some tables or is completely empty. <\/p>\n<ul>\n<li>Make sure that current user has permissions assigned. If you added new table to the project make sure you assigned permissions for this table to all user groups.<\/li>\n<li>check events like ModifyMenuItem or AfterSuccessfulLogin. Remove code from those events temporarily to see if this fixes the issue.<\/li>\n<li>Reset welcome page in Visual Editor. This is unlikely to fix anything but we need to eliminate all possibilities<\/li>\n<\/ul>\n<p>If all of above doesn&#8217;t help it is time to <a href=\"https:\/\/xlinesoft.com\/dss\/support.asp\">contact support<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will teach you how to troubleshoot your web applications like a pro. Most of these tips are specific to PHPRunner, ASPRunner.NET and ASPRunnerPro but some of them apply to all web applications. General troubleshooting tips This is where you start when something doesn&#8217;t work as expected. Make sure that you run the latest build of the software Synchronize database and project Perform a full project build If you test your project on remote web server make sure you upload all generated files Clear&#8230;<span class=\"clearfix clearfix-post\"><\/span><a href=\"https:\/\/xlinesoft.com\/blog\/2018\/05\/07\/troubleshooting-web-applications\/\" class=\"more-link\">Continue Reading <span class=\"screen-reader-text\">&#8220;Troubleshooting web applications&#8221;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1724","post","type-post","status-publish","format-standard","hentry","category-php-category"],"_links":{"self":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=1724"}],"version-history":[{"count":17,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1724\/revisions"}],"predecessor-version":[{"id":1761,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/posts\/1724\/revisions\/1761"}],"wp:attachment":[{"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=1724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=1724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlinesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=1724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}