Okay
  Public Ticket #1630661
I see the issue
Open

Comments

  • Truong started the conversation

    Hi,

    I have an issue as following 

    1) Im using your theme "Sole - One Page WordPress Theme" on my site My site is http://nhakhoadrvuong.vn/development/

    2) When I access the site  http://nhakhoadrvuong.vn/development/chuyen-muc/nieng-rang-tham-my/, it shows an error:

    nhakhoadrvuong.vn is currently unable to handle this request. HTTP ERROR 500

    3) I have download the site to local host to check and see the error

    Fatal error: Call to undefined function hc_category_engine() in /Applications/XAMPP/xamppfiles/htdocs/wp-projects/nkdv2018-2/wp-content/themes/sole/category.php on line 8

    4) I switch the theme to a default theme, it works. 

    Therefore, I think the bug is related to that theme "Sole - One Page WordPress Theme"

    Could you please guide me to fix it?

  •  237
    Gabriel replied

    Hi, can you please install this plugin: https://wordpress.org/plugins/wp-serverinfo/

    and attach full page screenshots of General Overview and PHP Information?

    The fatal error doesn't make any sense, I'm trying to figure out what's wrong here. One possible cause would that you either use an incompatible PHP version. I recommend you use somewhere around 7.0, but no more than 7.2. Screenshots would help me learn more about your server.

  • Truong replied

    Hi,

    I moved the site to a server with php 7.2 and I encounter the error:

    Fatal error: Uncaught Error: Call to undefined function hc_category_engine() in /app/wp-content/themes/sole/category.php:8 Stack trace: #0 /app/wp-includes/template-loader.php(74): include() #1 /app/wp-blog-header.php(19): require_once('/app/wp-include...') #2 /app/index.php(17): require('/app/wp-blog-he...') #3 {main} thrown in /app/wp-content/themes/sole/category.php on line 8

    Attached files:  Screen Shot 2018-07-07 at 12.30.09 AM.png

  •  237
    Gabriel replied

    Yes, please change the version to 7.0

    7.2 is not currently supported.

  • Truong replied

    In addition, I access your site and see the same problem 

    https://socanny.com/sole/blog/category/marketing/


    Fatal error: Uncaught Error: Call to undefined function hc_category_engine() in /home/socanny7/public_html/sole/wp-content/themes/sole/category.php:8 Stack trace: #0 /home/socanny7/public_html/sole/wp-includes/template-loader.php(74): include() #1 /home/socanny7/public_html/sole/wp-blog-header.php(19): require_once('/home/socanny7/...') #2 /home/socanny7/public_html/sole/index.php(17): require('/home/socanny7/...') #3 {main} thrown in /home/socanny7/public_html/sole/wp-content/themes/sole/category.php on line 8

    Attached files:  Screen Shot 2018-07-07 at 12.37.22 AM.png

  • Truong replied

    actually, I used 7.1 as your recommendation

    "I recommend you use somewhere around 7.0, but no more than 7.2."

  • Truong replied

    Hi,

    I have just change the server to php 7.0 . the issue is still there 

    http://nhakhoadrvuong.vn/development/chuyen-muc/trong-rang-implant/

  •  237
    Gabriel replied

    Yes, you're right, there's indeed an issue with the theme.

    Let me get this fixed and I'll get back to you.

  • Truong replied

    I have debugged, it seems failed at :

    if (defined("HC_PLUGIN_PATH")) { hc_category_engine();
    } else {

    in the file "/wp-content/themes/sole/category.php"

    I hope that you can give me a hot fix soon because we are urgent now.


  •  237
    Gabriel replied

    Yes, it looks like category.php was a file left over from the review process. I don't know if you're aware but Envato reviews themes on an old fashion, without any plugins or settings active, so small workarounds need to be made for the theme to actually get approved.

    Anyway, just delete category.php from sole folder and you should be good.

    Let me know how it works on your end.

  • Truong replied

    Hello,

    It does not show error any more but the Category name and post list are hidden now. It does not work as I expected.

    Expectation:

    Category name & list of post should be ON. Please see http://nhakhoadrvuong.vn/development/chuyen-muc/boc-rang-su/

  •  237
    Gabriel replied

    On Theme Options - Lists, did you set the blog page? Select the page you created for blog and it will display the archive.

  • Truong replied

    Hi,

    I don't think it works to me because I have some menu items. Each following menu item links to a category.  Each category has some posts

  •  237
    Gabriel replied

    It doesn't matter. The page you will set in Theme Options will be used as template for category pages.

    You will need to create a page and add a masonry list element. More details about it here: https://socanny.com/doc/sole/#blog

  • Truong replied

    Hello, 

    I have seen the option "Custom php" and I activated it.

    Custom php

    If activated a custom.php file is created into custom folder of theme root and loaded in every page of your website.

    Issue:

    However, I don't see the custom folder or custom.php file.

    Could you please help telling me where it it or how o make this option works?

    Attached files:  custom-php-option.png

  •  237
    Gabriel replied

    Hi, the file is created here: wp-content/plugins/hybrid-composer/custom

    Sorry for the confusion, we'll edit that. Hybrid Composer is actually the theme core, that's why it was written that way, but you are right, that's not the theme root directory.

  • Truong replied

    I got it. 

    I added a simple HTML. but it added wrongly. As a result, it the HTML tags was changed unexpectedly. As you see in the attached file, the meta tags is inside body though I added just a small HTML content.

    <div class="fixed-top-mobile-section ">
    <a class="" href="tel:19002680"><i class=" fa fa-phone "></i> <b>1900 2680</b></a>
    </div>

    I checked by quote he HTML content, It added at the top which is out of the html tag. I think that this custom.php should be included under BODY tag. 

    Please help to guide me to fix it.

    Attached files:  broken-layout.png
      custom-php-is at top.png

  •  237
    Gabriel replied

    Yes, that is correct. File is for a custom php, not html so it's ok to place it on top.

    If you want to add some custom html and include it in every page, I suggest you use this plugin: https://wordpress.org/plugins/insert-headers-and-footers/

    Insert the code in Scripts in Footer.

  • Truong replied

    Thank you.

    I have  another issue:

    My all pages show he same meta data by your default as bellow:

    • Title: Marketing Agency Demo - Sole - One Page WordPress Theme
    • Description: Meta description preview:Easy to Use · Very Fast on all Servers · Quick & Flexible Customisations · Visual Page Builder · One Click Install · Premium Customer Support · Only $49
    • Example URL: http://dev.nhakhoadrvuong.vn/bang-gia/ ‎

    Where to change it?

    Attached files:  default-SEO-meta-data.png

  •  237
    Gabriel replied

    It means you're using Yoast SEO. We're using the plugin too, and the metadata was also exported. Just edit the details on each page (it is highly recommended you did that anyway).