Forum

Thread tagged as: Question, Problem, Error

Search Stopped Working

For some reason, search just stopped working. I re-istalled perch, re-uploaded the search page and templates, as well as verified that items in perch are set to show in search results. Pretty much right back to where I started when it was working. There are no error_log entries. Not sure where to go from here. Thanks!

Jared Medley

Jared Medley 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

What do you mean by "stopped working"? What did you do prior to this?

Please post your Diagnostics Report and also the output from turning on debug.

It shows that there are no results for items that previously had shown up in results. I had it working, then I did some other work with categories on a video page, then noticed that search wasn't working globally, or within the video page. I copied the search page to another site that uses perch and it showed results fine so I'm guessing it's something within perch on the current site. https://handiquilter.me/search.php?q=trad Here is the diagnostics report: Perch: 2.8.15 Production mode: Production (100) Installed apps: content (2.8.15), assets (2.8.15), categories (2.8.15), perch_blog (4.6), perch_events (1.9.2), perch_forms (1.8.3), perch_gallery (2.8.6), perch_mailchimp (2.0.1), perch_comments (1.2), perch_members (1.4) DB driver: PDO DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_members, perch2_members_forms, perch2_members_member_tags, perch2_members_sessions, perch2_members_tags, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 1 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', 'perch_events', 'perch_forms', 'perch_comments', 'perch_gallery', 'perch_mailchimp', ); Scheduled tasks for perch_comments: delete_spam_comments (1440 mins) Scheduled tasks for perch_mailchimp: update_list_stats (60 mins) Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Scheduled tasks for perch_events: update_category_counts (60 mins) Editor plug-ins: markitup H1: 53cdad1f52a88a5414064adf060e4422 L1: c51b04538bc3b1313dfcf59919ebecb7 headerColour: #ffffff content_singlePageEdit: 0 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.8.14: done latest_version: 2.8.15 on_sale_version: 2.8.15 headerScheme: light dashboard: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 1 content_frontend_edit: 0 logoPath: /admin/resources/logo.png update_2.8.15: done perch_members_update: 1.4 perch_comments_akismet_key: perch_comments_max_spam_days: 0 perch_members_login_page: /members/login.php?r={returnURL} perch_mailchimp_api_key: perch_mailchimp_list_id: perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug} perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_blog_max_spam_days: 0 perch_events_detail_url: /events/event.php?s={eventSlug} perch_gallery_bucket_mode: single perch_gallery_bucket: default perch_blog_comment_notify: 0 perch_gallery_basicUpload: 0 PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: handiqui_handi PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: handiqui_master PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: jaredmedley@gmail.com PERCH_EMAIL_FROM_NAME: Jared Medley PERCH_LOGINPATH: /admin PERCH_PATH: /home/handiquilter/public_html/admin PERCH_CORE: /home/handiquilter/public_html/admin/core PERCH_RESFILEPATH: /home/handiquilter/public_html/admin/resources PERCH_RESPATH: /admin/resources PERCH_HTML5: 1 PERCH_YOUTUBE_API_KEY: AIzaSyD0m4AelQ-zYRGWM1qknG5p3gVlJVoqg8Q PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/handiquilter/public_html/admin/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS

PHP: 5.5.17 Zend: 2.5.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $ MySQL server: 5.5.46-cll Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, filter, ftp, gd, gettext, SPL, iconv, session, json, mbstring, mcrypt, standard, mysql, mysqli, mysqlnd, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, pdo_mysql, ionCube Loader GD: Yes ImageMagick: No PHP max upload size: 50M PHP max form post size: 10M PHP memory limit: 128M Total max uploadable file size: 10M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No CONTEXT_DOCUMENT_ROOT: /home/handiquilter/public_html DOCUMENT_ROOT: /home/handiquilter/public_html GATEWAY_INTERFACE: CGI/1.1 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,de;q=0.6,fr;q=0.4 HTTP_CACHE_CONTROL: max-age=0 HTTP_CONNECTION: keep-alive HTTP_COOKIE: cmsa=1; p_m=60f57637b1b83746931270dcabd6f52846b6b6b1; PHPSESSID=cc2ad1c6457ef50347bba9e139b5a8de HTTP_HOST: handiquilter.me HTTP_REFERER: https://handiquilter.me/admin/core/settings/diagnostics/ HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 HTTP_VIA: 1.1 hqmain.handiquilter.com (squid/3.1.10) HTTP_X_FORWARDED_FOR: 192.168.1.91 PATH: /bin:/usr/bin QUERY_STRING: extended REDIRECT_STATUS: 200 REMOTE_ADDR: 50.247.57.33 REMOTE_PORT: 55604 REQUEST_METHOD: GET REQUEST_SCHEME: http REQUEST_URI: /admin/core/settings/diagnostics/?extended SCRIPT_FILENAME: /home/handiquilter/public_html/admin/core/settings/diagnostics/index.php SCRIPT_NAME: /admin/core/settings/diagnostics/index.php SERVER_ADDR: 192.163.234.183 SERVER_ADMIN: webmaster@handiquilter.me SERVER_NAME: handiquilter.me SERVER_PORT: 80 SERVER_PROTOCOL: HTTP/1.1 SERVER_SOFTWARE: Apache UNIQUE_ID: VkZQisCj6rcAAGf2DtwAAACO PHP_SELF: /admin/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1447448714.8305 REQUEST_TIME: 1447448714

Ahh! I noticed in debug that there were no app databases, and so I figured out that I had to click on each app in perch and the tables were created. Then the search worked! Sorry for taking your time, and thanks again for a great CMS. Thanks again!