Giter Site home page Giter Site logo

mageprince / magento2-faq Goto Github PK

View Code? Open in Web Editor NEW
55.0 7.0 37.0 1.82 MB

This module adds an easy way to use FAQ Section to your Magento store with jQuery Accordion. In this module, admin can add and update FAQ. Admin can also create FAQ group with group icon.

PHP 87.36% HTML 7.92% Less 2.63% JavaScript 2.08%
magento2 faq faq-extension-free faq-accordion faq-extension-in-magento-2 magento-2-faq-extension magento magento-marketplace magento2-module-free magento2-module

magento2-faq's Introduction

Latest Stable Version Total Downloads Monthly Downloads License Scrutinizer Code Quality Code Intelligence Status

Magento 2 FAQ

This module adds an easy way to use FAQ section to your Magento store with jQuery Accordion. In this module, admin can add and update FAQ. Admin can also create FAQ group with group icon. Admin can add widgets, blocks, images etc. in FAQ answer with wyswing editor.

New Features

  • Show all FAQ on CMS page and static block
  • Show FAQ by group on CMS page and static block
  • Load FAQ by ajax on group selection on the frontend
  • Custom FAQ URL
  • Add FAQ anywhere by widget

Check full description and user guid on Magento Marketplace

Demo

Frontend | Backend

How to install Magento 2 FAQ

1. Install from Magento Marketplace

Magento Marketplace Link

2. Install via composer (packagist.org)

Run the following command in the Magento 2 root folder:

composer require mageprince/module-faq
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Use the below code for the CMS page and Static Block

1. To show all FAQ

{{block class="Mageprince\Faq\Block\Index\Index" template="Mageprince_Faq::faq_main.phtml" show_group_title=1 show_group=1 page_type="scroll"}}

2. To show FAQ by group

{{block class="Mageprince\Faq\Block\Index\Index" template="Mageprince_Faq::faq_main.phtml" group_id=1 show_group_title=1}}

Contribution

Want to contribute to this extension? The quickest way is to open a pull request on GitHub.

Support

If you encounter any problems or bugs, please open an issue on GitHub.

Extension Screenshots

magento2-faq's People

Contributors

hidonet avatar mageprince avatar pprincepatel avatar princektpl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento2-faq's Issues

Schema.org FAQ

Hi, please consider support the schema.org faq schema

Magento 2.3.3 Admin issue

All admin links of this extension returning this error.

1 exception(s):
Exception #0 (InvalidArgumentException): Class argument is invalid: Magento\Framework\View\Element\UiComponent\Context

Exception #0 (InvalidArgumentException): Class argument is invalid: Magento\Framework\View\Element\UiComponent\Context

#1 Magento\Framework\Data\Argument\InterpreterInterface\Proxy->evaluate() called at [vendor/magento/framework/Data/Argument/Interpreter/Composite.php:61]
#2 Magento\Framework\Data\Argument\Interpreter\Composite->evaluate() called at [vendor/magento/module-ui/Config/Data.php:164]
#3 Magento\Ui\Config\Data->evaluateComponentArguments() called at [vendor/magento/module-ui/Config/Data.php:111]
#4 Magento\Ui\Config\Data->initData() called at [vendor/magento/module-ui/Config/Data.php:136]
#5 Magento\Ui\Config\Data->get() called at [vendor/magento/framework/View/Layout/Reader/UiComponent.php:100]
#6 Magento\Framework\View\Layout\Reader\UiComponent->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#7 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Layout/Reader/Container.php:89]
#8 Magento\Framework\View\Layout\Reader\Container->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#9 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Page/Config/Reader/Body.php:68]
#10 Magento\Framework\View\Page\Config\Reader\Body->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#11 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Layout.php:325]
#12 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:89]
#13 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#14 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55]
#15 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#16 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224]
#17 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:247]
#18 Magento\Framework\View\Page\Config->getTitle() called at [vendor/mageprince/module-faq/Controller/Adminhtml/FaqGroup/Index.php:61]
#19 Prince\Faq\Controller\Adminhtml\FaqGroup\Index->execute() called at [generated/code/Prince/Faq/Controller/Adminhtml/FaqGroup/Index/Interceptor.php:24]
#20 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#21 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:231]
#22 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#23 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#24 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/WeltPixel/Backend/Plugin/Utility.php:76]
#25 WeltPixel\Backend\Plugin\Utility->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#26 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:143]
#27 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#28 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#29 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->___callPlugins() called at [generated/code/Prince/Faq/Controller/Adminhtml/FaqGroup/Index/Interceptor.php:39]
#30 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:159]
#31 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:99]
#32 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#33 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#34 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#35 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#36 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:137]
#37 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#38 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:40]

FAQs everything visible when after page loaded

Hi Prince,
using your FAQ extension and it is working fine in general, but there is one small issue where I do not know what could cause this behaviour.
FIrst additional information for you, I am using Magento2 2.3.5-p2 and the lastest version here from github of your module

Ok, when I load the faq page everything is visible for lets say 1-2 seconds, before it is changing to the correct collabsed view.
It looks first as in the scrennshot below:
grafik

And after 1-2s like it should:
grafik

After this everything works fine.

Do you have any idea what could cause this?

Looking forward to hearing from you.

Best regards,
Jürgen

Show FAQ page on custom page?

Hello, can i not show the FAQ on a custom content page?
I want to add some text and maybe use a sidebar ;)

Thanks.

Module Update

Hi,

To anyone using this module or the developers themselves. I would recommend you add these changes in your custom theme. They both improve the overall aspect of the module.

Create Prince_Faq/layout and Prince_Faq/templates/index in your custom theme.

Upload the attached faq_index_index.xml file to the layout folder you created.

<?xml version="1.0" ?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

<head>
    <title>Frequently Asked Questions</title>
    <!-- <css src="Prince_Faq/css/faq.css"/> -->
    <!-- <link src="Prince_Faq/js/faq.js"/> --> 
</head>
	
    <body>

	<referenceBlock name="page.main.title">
		<action method="setPageTitle">
			<argument translate="true" name="title" xsi:type="string">Frequently Asked Questions</argument>
		</action>
	</referenceBlock>
	
	<referenceBlock name="breadcrumbs">
        <action method="addCrumb">
            <argument name="crumbName" xsi:type="string">Home</argument>
            <argument name="crumbInfo" xsi:type="array">
                <item name="title" xsi:type="string">Home</item>
                <item name="label" xsi:type="string">Home</item>
                <item name="link" xsi:type="string">{{baseUrl}}</item>
            </argument>
        </action>
        <action method="addCrumb">
            <argument name="crumbName" xsi:type="string">Frequently Asked Questions</argument>
            <argument name="crumbInfo" xsi:type="array">
                <item name="title" xsi:type="string">Frequently Asked Questions</item>
                <item name="label" xsi:type="string">Frequently Asked Questions</item>
            </argument>
        </action>
        </referenceBlock>
	
	<!-- 
	<referenceContainer name="content">
		<block class="Prince\Faq\Block\Index\Index" name="index.index" template="Prince_Faq::index/index.phtml"/>
	</referenceContainer>
	-->
	
    </body>
</page>

This file will add a Title and Breadcrumbs to the FAQ page. As well as removing the css and js that I am not using, due to lots of issues.

Upload the attached index.phtml file to the templates/index folder.

<?php $isEnable = $block->getConfig('faqtab/general/enable') ?>
<?php $showGroup = $block->getConfig('faqtab/general/showgroup') ?>
<?php $showGroupTitle = $block->getConfig('faqtab/general/showgrouptitle') ?>
<?php $faqGroupCollection = $block->getFaqGroupCollection() ?>
<?php if ($faqGroupCollection->getSize()) : ?>
<?php if ($isEnable) : ?>
<div class="faq-collection">
    <?php if ($showGroup) : ?>
        <div class="faq-groups">
            <?php foreach ($faqGroupCollection as $group) : ?>
                <div class="faq-group">
                    <a href="#group<?php /* @noEscape */ echo $group->getFaqgroupId(); ?>" class="group-link">
						<div class="faq-group-image">
                        <?php if ($group->getIcon()) : ?>
                            <img class="group-image"
                                 src="<?php /* @noEscape */ echo $block->getImageUrl($group->getIcon()); ?>" />
                        <?php else : ?>
                            <img class="group-image" 
                                 src="<?php /* @noEscape */ echo $block->getViewFileUrl('Prince_Faq::images/faq.png'); ?>" />
                        <?php endif; ?>
                        </div>
                    </a>
                    <div class="faq-groupname">
                    <a href="#group<?php /* @noEscape */ echo $group->getFaqgroupId(); ?>" class="group-link">
                        <?php /* @noEscape */ echo $group->getGroupName(); ?>
                    </a>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
    <?php endif; ?>
    <div class="faq-content">
        <?php foreach ($faqGroupCollection as $group) : ?>
            <?php if ($showGroupTitle) : ?>
                <div class="group-title" id="group<?php /* @noEscape */ echo $group->getFaqgroupId(); ?>">
                    <i></i><?php /* @noEscape */ echo $group->getGroupName(); ?>
                </div>
            <?php endif; ?>
            <div class="faq-accordion">
            <?php $faqCollection = $block->getFaqCollection($group->getId()); ?>
                <?php if ($faqCollection->getSize()) : ?>
                    <?php foreach ($faqCollection as $faq) : ?> 
                        <h3><?php /* @noEscape */ echo $faq->getTitle(); ?></h3>
                        <div>
                            <p><?php /* @noEscape */ echo $block->filterOutputHtml($faq->getContent()); ?></p>
                        </div>
                    <?php endforeach; ?>
                <?php else : ?>
                    <div><?php /* @noEscape */ echo __('No FAQ available'); ?></div>
                <?php endif; ?>
            </div>
        <?php endforeach; ?>
    </div>
</div>
<?php endif; ?>
<?php else : ?>
<div>
    <h1><?php /* @noEscape */ echo __('No FAQ Group available'); ?></h1>
</div>
<?php endif; ?>

In this file, I just rearranged a few containers so the entire group image can be selected instead of just a small portion of it.

Styling with CSS

I just installed the latest 2.07 version and have it configured in admin with a few test categories and faqs. In the frontend the faqs appear but without any css styling. It looks like the css found in app/code/Mageprince/Faq/view/frontend/web/css/source/_module.less is not loaded. I'm running in developer mode and have cleared / cleaned cache repeatedly. Any ideas?
Thanks

2 exception(s):

2 exception(s):
Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'offersg_shiny.prince_faqgroup' doesn't exist, query was: SELECT main_table.* FROM prince_faqgroup AS main_table
Exception #1 (PDOException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'offersg_shiny.prince_faqgroup' doesn't exist

Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'offersg_shiny.prince_faqgroup' doesn't exist, query was: SELECT main_table.* FROM prince_faqgroup AS main_table
#0 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(93): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
#2 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT main_ta...', Array) #4 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(533): Zend_Db_Adapter_Pdo_Abstract->query('SELECT main_ta...', Array)
#5 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `main_ta...', Array)
#6 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#7 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array)
#8 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(774): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll(Object(Magento\Framework\DB\Select), Array)
#9 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(670): Magento\Framework\Data\Collection\AbstractDb->_fetchAll(Object(Magento\Framework\DB\Select))
#10 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(574): Magento\Framework\Data\Collection\AbstractDb->getData()
#11 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(559): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false)
#12 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection.php(831): Magento\Framework\Data\Collection\AbstractDb->load()
#13 /home/offersg/public_html/magento2/app/code/Prince/Faq/Ui/Component/Listing/Column/FaqGroup.php(26): Magento\Framework\Data\Collection->getIterator()
#14 /home/offersg/public_html/magento2/vendor/magento/module-ui/Component/Form/Element/AbstractOptionsField.php(55): Prince\Faq\Ui\Component\Listing\Column\FaqGroup->toOptionArray()
#15 /home/offersg/public_html/magento2/vendor/magento/module-ui/Component/Listing/Columns/Column.php(79): Magento\Ui\Component\Form\Element\AbstractOptionsField->prepare()
#16 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(159): Magento\Ui\Component\Listing\Columns\Column->prepare()
#17 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(156): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing\Columns\Column))
#18 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(156): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing\Columns))
#19 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(137): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing))
#20 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(97): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'prince_faq_inde...', Array, Object(Magento\Framework\View\Layout\Interceptor))
#21 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#22 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout.php(343): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#23 /home/offersg/public_html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#24 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#25 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#26 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#27 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Config.php(208): Magento\Framework\View\Layout\Builder->build()
#28 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Config.php(228): Magento\Framework\View\Page\Config->build()
#29 /home/offersg/public_html/magento2/generated/code/Magento/Framework/View/Page/Config/Interceptor.php(50): Magento\Framework\View\Page\Config->getTitle()
#30 /home/offersg/public_html/magento2/app/code/Prince/Faq/Controller/Adminhtml/Faq/Index.php(33): Magento\Framework\View\Page\Config\Interceptor->getTitle()
#31 /home/offersg/public_html/magento2/generated/code/Prince/Faq/Controller/Adminhtml/Faq/Index/Interceptor.php(24): Prince\Faq\Controller\Adminhtml\Faq\Index->execute()
#32 /home/offersg/public_html/magento2/vendor/magento/framework/App/Action/Action.php(107): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->execute()
#33 /home/offersg/public_html/magento2/vendor/magento/module-backend/App/AbstractAction.php(235): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#34 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#35 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->___callParent('dispatch', Array)
#36 /home/offersg/public_html/magento2/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#37 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#38 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#39 /home/offersg/public_html/magento2/generated/code/Prince/Faq/Controller/Adminhtml/Faq/Index/Interceptor.php(39): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->___callPlugins('dispatch', Array, NULL)
#40 /home/offersg/public_html/magento2/vendor/magento/framework/App/FrontController.php(55): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#41 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#42 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#43 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#44 /home/offersg/public_html/magento2/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#45 /home/offersg/public_html/magento2/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#46 /home/offersg/public_html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#47 /home/offersg/public_html/magento2/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\Http\Interceptor->launch()
#48 /home/offersg/public_html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#49 {main}

Exception #1 (PDOException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'offersg_shiny.prince_faqgroup' doesn't exist
#0 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Statement/Pdo/Mysql.php(93): Zend_Db_Statement_Pdo->_execute(Array)
#2 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement.php(303): Magento\Framework\DB\Statement\Pdo\Mysql->_execute(Array)
#3 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#4 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT main_ta...', Array) #5 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(533): Zend_Db_Adapter_Pdo_Abstract->query('SELECT main_ta...', Array)
#6 /home/offersg/public_html/magento2/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(605): Magento\Framework\DB\Adapter\Pdo\Mysql->_query('SELECT `main_ta...', Array)
#7 /home/offersg/public_html/magento2/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(737): Magento\Framework\DB\Adapter\Pdo\Mysql->query(Object(Magento\Framework\DB\Select), Array)
#8 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/Db/FetchStrategy/Query.php(21): Zend_Db_Adapter_Abstract->fetchAll(Object(Magento\Framework\DB\Select), Array)
#9 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(774): Magento\Framework\Data\Collection\Db\FetchStrategy\Query->fetchAll(Object(Magento\Framework\DB\Select), Array)
#10 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(670): Magento\Framework\Data\Collection\AbstractDb->_fetchAll(Object(Magento\Framework\DB\Select))
#11 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(574): Magento\Framework\Data\Collection\AbstractDb->getData()
#12 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection/AbstractDb.php(559): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false)
#13 /home/offersg/public_html/magento2/vendor/magento/framework/Data/Collection.php(831): Magento\Framework\Data\Collection\AbstractDb->load()
#14 /home/offersg/public_html/magento2/app/code/Prince/Faq/Ui/Component/Listing/Column/FaqGroup.php(26): Magento\Framework\Data\Collection->getIterator()
#15 /home/offersg/public_html/magento2/vendor/magento/module-ui/Component/Form/Element/AbstractOptionsField.php(55): Prince\Faq\Ui\Component\Listing\Column\FaqGroup->toOptionArray()
#16 /home/offersg/public_html/magento2/vendor/magento/module-ui/Component/Listing/Columns/Column.php(79): Magento\Ui\Component\Form\Element\AbstractOptionsField->prepare()
#17 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(159): Magento\Ui\Component\Listing\Columns\Column->prepare()
#18 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(156): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing\Columns\Column))
#19 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(156): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing\Columns))
#20 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(137): Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(Object(Magento\Ui\Component\Listing))
#21 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Generator/UiComponent.php(97): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'prince_faq_inde...', Array, Object(Magento\Framework\View\Layout\Interceptor))
#22 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/GeneratorPool.php(80): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#23 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout.php(343): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context))
#24 /home/offersg/public_html/magento2/generated/code/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements()
#25 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements()
#26 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks()
#27 /home/offersg/public_html/magento2/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks()
#28 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Config.php(208): Magento\Framework\View\Layout\Builder->build()
#29 /home/offersg/public_html/magento2/vendor/magento/framework/View/Page/Config.php(228): Magento\Framework\View\Page\Config->build()
#30 /home/offersg/public_html/magento2/generated/code/Magento/Framework/View/Page/Config/Interceptor.php(50): Magento\Framework\View\Page\Config->getTitle()
#31 /home/offersg/public_html/magento2/app/code/Prince/Faq/Controller/Adminhtml/Faq/Index.php(33): Magento\Framework\View\Page\Config\Interceptor->getTitle()
#32 /home/offersg/public_html/magento2/generated/code/Prince/Faq/Controller/Adminhtml/Faq/Index/Interceptor.php(24): Prince\Faq\Controller\Adminhtml\Faq\Index->execute()
#33 /home/offersg/public_html/magento2/vendor/magento/framework/App/Action/Action.php(107): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->execute()
#34 /home/offersg/public_html/magento2/vendor/magento/module-backend/App/AbstractAction.php(235): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#35 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#36 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->___callParent('dispatch', Array)
#37 /home/offersg/public_html/magento2/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#38 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#39 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#40 /home/offersg/public_html/magento2/generated/code/Prince/Faq/Controller/Adminhtml/Faq/Index/Interceptor.php(39): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->___callPlugins('dispatch', Array, NULL)
#41 /home/offersg/public_html/magento2/vendor/magento/framework/App/FrontController.php(55): Prince\Faq\Controller\Adminhtml\Faq\Index\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#42 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#43 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#44 /home/offersg/public_html/magento2/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}(Object(Magento\Framework\App\Request\Http))
#45 /home/offersg/public_html/magento2/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#46 /home/offersg/public_html/magento2/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#47 /home/offersg/public_html/magento2/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch()
#48 /home/offersg/public_html/magento2/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\Http\Interceptor->launch()
#49 /home/offersg/public_html/magento2/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#50 {main}

Unable to get content

Hi,

Every time I open the FAQ page on the Frontend I receive this message in the exception.log:

[2019-03-21 17:12:21] main.CRITICAL: Unable to get content for 'frontend/themevendor/theme/en_US/Prince_Faq/js/faq.min.js' {"exception":"[object] (Magento\Framework\View\Asset\File\NotFoundException(code: 0): Unable to get content for 'frontend/themevendor/theme/en_US/Prince_Faq/js/faq.min.js' at /home/username/public_html/vendor/magento/framework/View/Asset/File.php:186)"} []

Thanks!
Ryan

Accordion arrow doesn't display properly. It shows a weird box.

Preconditions:
Magento 2.2.8
mageprince/magento2-faq --> Latest commit 070cf02 on 26 Aug 2018
LAMP server

The accordion arrow doesn't work in no web browser (chrome/firefox/ie). Check screencapture: http://prnt.sc/odbl1v

What I did is:

  • opened following file: app/code/Prince/Faq/view/frontend/web/css/faq.css
  • You'll find following lines between lines 171-180:
.ui-accordion .ui-state-default:after {
  content: '\e608';
  font-family: 'luma-icons';
  float: right;
}

.ui-accordion .ui-accordion-header-active:after {
  content: '\e622';
  font-family: 'luma-icons';
}
  • I erased line specifying "content", so it is as follows:
.ui-accordion .ui-state-default:after {
  font-family: 'luma-icons';
  float: right;
}

.ui-accordion .ui-accordion-header-active:after {
  font-family: 'luma-icons';
}

I don't know how to call the arrow that should appear there so I prefer it to display nothing instead of the weird box. Result capture: http://prnt.sc/odbljk

Not available via composer

Hello
Package is not available via composer with composer require prince/module-faq
Thanks for the help

Not working

When clicking on managed Faq group or manage faq it redirecting to Dashboard. Is this because I'm using Magento 2.1.9?

Errors after update to the last version

Hey guys, we updated today mageprince /Faq on magento 2 to the last version 1.0.6;

Hey guys, our siteweb on magento 2 was working fine since today that we updated Mageprince/Faq module to the last version;
Module updated to 1.0.6 on magento 2, but after that we got an error when try to enter in backend to FAQ >

Manage FAQGroup- SHOW ERROR
Manage FAQ- SHOW ERROR
Settings- WORKING


Error:1 exception(s):
Exception #0 (InvalidArgumentException): Class argument is invalid: Magento\Framework\View\Element\UiComponent\Context

Exception #0 (InvalidArgumentException): Class argument is invalid: Magento\Framework\View\Element\UiComponent\Context

#1 Magento\Framework\Data\Argument\InterpreterInterface\Proxy->evaluate() called at [vendor/magento/framework/Data/Argument/Interpreter/Composite.php:61]
#2 Magento\Framework\Data\Argument\Interpreter\Composite->evaluate() called at [vendor/magento/module-ui/Config/Data.php:164]
#3 Magento\Ui\Config\Data->evaluateComponentArguments() called at [vendor/magento/module-ui/Config/Data.php:111]
#4 Magento\Ui\Config\Data->initData() called at [vendor/magento/module-ui/Config/Data.php:136]
#5 Magento\Ui\Config\Data->get() called at [vendor/magento/framework/View/Layout/Reader/UiComponent.php:100]
#6 Magento\Framework\View\Layout\Reader\UiComponent->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#7 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Layout/Reader/Container.php:89]
#8 Magento\Framework\View\Layout\Reader\Container->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#9 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Page/Config/Reader/Body.php:68]
#10 Magento\Framework\View\Page\Config\Reader\Body->interpret() called at [vendor/magento/framework/View/Layout/ReaderPool.php:105]
#11 Magento\Framework\View\Layout\ReaderPool->interpret() called at [vendor/magento/framework/View/Layout.php:325]
#12 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:89]
#13 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#14 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55]
#15 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#16 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224]
#17 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:247]
#18 Magento\Framework\View\Page\Config->getTitle() called at [generated/code/Magento/Framework/View/Page/Config/Interceptor.php:50]
#19 Magento\Framework\View\Page\Config\Interceptor->getTitle() called at [app/code/Prince/Faq/Controller/Adminhtml/FaqGroup/Index.php:61]
#20 Prince\Faq\Controller\Adminhtml\FaqGroup\Index->execute() called at [generated/code/Prince/Faq/Controller/Adminhtml/FaqGroup/Index/Interceptor.php:24]
#21 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#22 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:231]
#23 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#24 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#25 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/WeltPixel/Backend/Plugin/Utility.php:76]
#26 WeltPixel\Backend\Plugin\Utility->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#27 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:143]
#28 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#29 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#30 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->___callPlugins() called at [generated/code/Prince/Faq/Controller/Adminhtml/FaqGroup/Index/Interceptor.php:39]
#31 Prince\Faq\Controller\Adminhtml\FaqGroup\Index\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:159]
#32 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:98]
#33 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#34 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#35 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#36 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#37 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:137]
#38 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#39 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#40 Magento\Framework\App\Bootstrap->run() called at [index.php:42]

Can you help us to fix that?
Thanks
Best Regards

Class Mageprince\Base\Helper\Data does not exist

Getting bellow issues when run setup:di:compile

In ClassReader.php line 45:

Impossible to process constructor argument Parameter #3 [ Mageprince\Base\Helper\Data $baseHelper ] of Mageprince\Faq\Helper\Data class

In ClassReader.php line 34:

Class Mageprince\Base\Helper\Data does not exist

setup:di:compile

FAQ Url Rewrite

Latest version 1.0.7. Every time you Save Config for the FAQ settings, it creates a URL Rewrite which points to the URL you had set before so it gets stuck in a loop. Deleting the URL Rewrite fixes the issue, but you should not have to do that.

Compile Error with setup:di:compile - Class not found

When running the compiler, we run into the following problem:

Class 'Mageprince\Faq\Block\Adminhtml\Faq\Edit\GenericButton' not found in .../app/code/Prince/FAQ/Block/Adminhtml/Faq/Edit/SaveButton.php on line 17

Version: 2.0.6

Magento 2.3.0 Group Icon Not Uploading

Recently some developers reporting an issue in Magento 2.3.0 about group icon upload.

image

This issue is not reproducible into later versions of the Magento.

Check the below comment to solve this issue.

H2

FAq page has H1 and H3.
Group titles should have H2.
Thanks

Page title

How can we set or change the Blog page title?

Getting error on composer install

Magento vertion is ver. 2.4.1

composer require sparsh/magento-2-faq-extension

[InvalidArgumentException]
Could not find a matching version of package sparsh/magento-2-faq-extension. Check the package spelling, your version constraint and that the package is available
in a stability which matches your minimum-stability (stable).

require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--skip-magento-root-plugin] [--use-default-magento-values] [--interactive-magento-conflicts] [--base-magento-edition BASE-MAGENTO-EDITION] [--base-magento-version BASE-MAGENTO-VERSION] [--] []...

magento2.prince_faqgroup' doesn't exist

Table 'magento2.prince_faqgroup' doesn't exist, query was: SELECT COUNT(*) FROM prince_faqgroup AS main_table

I installed it manually today (magento 2.3.5-p1) and I have this error on ManageFAQ and ManageFAQGroup.

On ManageFAQ it gets:

There has been an error processing your request
Exception printing is disabled by default for security reasons.

Error log record number: f41e8f6d4cab93c9c328f9e0ae351ef82b9e170f5cfe57dd8e4d4845282baeaa

What am I missing ?

Any ideas?

Unable to upload Image for FAQ Group

Hi

I have magento 2.3.0 installed. I have installed the Porto theme and recently installed the MagePrince FAQ extension. I have setup up groups and added questions. I am trying to change the default icon for the groups but I am unable to upload a new image.

When I click on upload I am able to select an image and click upload. After which nothing happens. You can see the small progress wheel spinning but nothing happens.

I have tried on Safari and Chrome. Am I correct in thinking that this module will not work fully on 2.3.0? Is there a work around?

Thank you

This screen shot shows the progress wheel next to the Upload button.
Screenshot 2019-03-29 at 12 54 47

The below error message can be seen in the Javascript Console and the line in code that is throwing an error.

Screenshot 2019-03-29 at 12 55 53

Screenshot 2019-03-29 at 12 55 48

Magento 2.3.0 Category icon

Greeting,
when I tried to upload png or jpg photo as category icon the system keeps loading and nothing happened, any ideas..?

Best Regards

jQueryUI Compat

I believe in version 2.3.2 of Magento, they changed the jQueryUI library to modularized in order to speed up frontend page loads.

So instead of calling the entire jQueryUI library, they call only the needed libraries.

As far as I can tell faq.js only needs jquery-ui-modules/accordion so calling that instead should resolve this.

Extension did not pass the Marketplace EQP installation test

Hi Prince,
I was try to upload my plugin a market place but it didn't get approved.
What will you done to resolve the below issues (Please help me out) :
This extension did not pass the Marketplace EQP installation test. Extensions are required to install successfully when compiled and run in production mode. You can find instructions on commandline configuration, setting the Magento mode to "Production", and compiling your code in the developer guide available at: http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli.html Once the code supports compilation and execution in production mode, please reupload your package.

Not working after install

Installed on Magento 2.2.2. I can change the settings for this in admin, but when I try to manage FAQGroup I get the following error: Not registered handle prince_faqgroup_grid_data_source. When I try to Manage FAQ I get the following error: Not registered handle prince_faq_grid_data_source

When I go to the FAQ page on the frontend, it is blank.

Idea for a new functionality for the next version of this module for Magento 2

Hi employees of Mageprince,

We are very happy with the module Magento 2 FAQ! This issue is not really an issue like a bug or anything, but more of a change request / new idea to put in the module maybe for the next version.

Is it simple to add a feature where you can collapse all with a button on the top right? I don't know if that is something you would like to add to the next version.

Please let me know if this is something you would like to add. Some customers of ours really like the module, but a couple of them are asking if this is possible, that's why I thought maybe you would like to at this.

FAQs in group 10 also appear in group 1

Hello,

KirillRock reported this in the MarketPlace page for this module, but I don't see an issue here.

When we had 10 faqgroups, numbered 1 - 10, we found that when we displayed the faq page, group 1 showed faqs from both group 1 and group 10. Group 10 correctly showed only the faqs for group 10.

With the data below, on the faq page, group 1 displays all 14 FAQs listed below. Group 10 displays only FAQs 41-45.

mysql> select faq_id, left (title,20), `group` from prince_faq where `group` like '1%'  order by `group`;                                                       
+--------+----------------------+-------+
| faq_id | left (title,20)      | group |
+--------+----------------------+-------+
|      4 | When must course mat | 1     |
|      5 | What are the conditi | 1     |
|      7 | Can I return coursew | 1     |
|      8 | What are final sale  | 1     |
|     10 | How will I be refund | 1     |
|     34 | Returns/Exchanges    | 1     |
|     38 | Can I return an e-te | 1     |
|     46 | Fall 2020 Return/Exc | 1     |
|     49 | I cancelled /returne | 1     |
|     41 | How do I know what t | 10    |
|     42 | What do I do if ther | 10    |
|     43 | Where do I find digi | 10    |
|     44 | What do I do if ther | 10    |
|     45 | What do I do if a te | 10    |
+--------+----------------------+-------+
14 rows in set (0.00 sec)

Workaround

The work around was to create group 11 and move the faqs from group 1 to group 11, then delete/disable group 1. Now group 1 is not displayed, and groups 10 and 11 are selected using like '10%' and like '11%' respectively so they display correctly. (See below)

If we were to get to 20 groups, I would expect the faqs from group 20 to appear in group 2 and a similar work around would be required.

mysql> select faq_id, left (title,20), `group` from prince_faq where `group` like '10%'  order by `group`;   
+--------+----------------------+-------+
| faq_id | left (title,20)      | group |
+--------+----------------------+-------+
|     41 | How do I know what t | 10    |
|     42 | What do I do if ther | 10    |
|     43 | Where do I find digi | 10    |
|     44 | What do I do if ther | 10    |
|     45 | What do I do if a te | 10    |
+--------+----------------------+-------+
5 rows in set (0.00 sec)

mysql> select faq_id, left (title,20), `group` from prince_faq where `group` like '11%'  order by `group`;   
+--------+----------------------+-------+
| faq_id | left (title,20)      | group |
+--------+----------------------+-------+
|      4 | When must course mat | 11    |
|      5 | What are the conditi | 11    |
|      7 | Can I return coursew | 11    |
|      8 | What are final sale  | 11    |
|     10 | How will I be refund | 11    |
|     34 | Returns/Exchanges    | 11    |
|     38 | Can I return an e-te | 11    |
|     46 | Fall 2020 Return/Exc | 11    |
|     49 | I cancelled /returne | 11    |
+--------+----------------------+-------+
9 rows in set (0.00 sec)

Solution

Somewhere in the selection of the FAQs for each group, there appears to be a group like '1%' instead of group = '1'.
This query should be identified and changed, or the setting of the relevant Magento collection object should be changed.

Thanks for making the module available.
HTH
Angus

After Install 504 Error

Hi,

After installation, I got 504 error. When I disabled then website works fine. PFA screen for your reference.

image

Deprecated Back Button Error on Php 8.2

See deprecated error on add/edit FAQ question

`1 exception(s):
Exception #0 (Exception): Deprecated Functionality: Creation of dynamic property Mageprince\Faq\Block\Adminhtml\Faq\Edit\BackButton::$context is deprecated in
/public_html/vendor/mageprince/module-faq/Block/Adminhtml/Faq/Edit/GenericButton.php on line 34

#1 Mageprince\Faq\Block\Adminhtml\Faq\Edit\GenericButton->__construct() called at [vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121]
#2 Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject() called at [vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:66]
#3 Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() called at [vendor/magento/framework/ObjectManager/ObjectManager.php:56]
#4 Magento\Framework\ObjectManager\ObjectManager->create() called at [vendor/magento/framework/View/Element/UiComponent/Control/ButtonProviderFactory.php:39]
#5 Magento\Framework\View\Element\UiComponent\Control\ButtonProviderFactory->create() called at [vendor/magento/framework/View/Element/UiComponent/Context.php:300]
#6 Magento\Framework\View\Element\UiComponent\Context->addButtons() called at [vendor/magento/module-ui/Component/AbstractComponent.php:115]
#7 Magento\Ui\Component\AbstractComponent->prepare() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:164]
#8 Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:142]
#9 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]
#10 Magento\Framework\View\Layout\Generator\UiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93]
#11 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365]
#12 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68]
#13 Magento\Framework\View\Layout\Interceptor->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#14 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:65]
#15 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#16 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Layout.php:271]
#17 Magento\Framework\View\Layout->build() called at [vendor/magento/framework/View/Layout.php:896]
#18 Magento\Framework\View\Layout->getBlock() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:293]
#19 Magento\Framework\View\Layout\Interceptor->getBlock() called at [vendor/magento/module-backend/Model/View/Result/Page.php:26]
#20 Magento\Backend\Model\View\Result\Page->setActiveMenu() called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:23]
#21 Magento\Backend\Model\View\Result\Page\Interceptor->setActiveMenu() called at [vendor/mageprince/module-faq/Controller/Adminhtml/Faq/Edit.php:62]
#22 Mageprince\Faq\Controller\Adminhtml\Faq\Edit->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#23 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#24 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#25 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->___callPlugins() called at [generated/code/Mageprince/Faq/Controller/Adminhtml/Faq/Edit/Interceptor.php:23]
#26 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#27 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#28 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#29 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#30 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:145]
#31 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#32 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/Webkul/MpSellerGroup/Plugin/App/Action/Context.php:57]
#33 Webkul\MpSellerGroup\Plugin\App\Action\Context->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#34 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/Webkul/Marketplace/Plugin/App/Action/Context.php:56]
#35 Webkul\Marketplace\Plugin\App\Action\Context->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#36 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#37 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->___callPlugins() called at [generated/code/Mageprince/Faq/Controller/Adminhtml/Faq/Edit/Interceptor.php:32]
#38 Mageprince\Faq\Controller\Adminhtml\Faq\Edit\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#39 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#40 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:146]
#41 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#42 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#43 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#44 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#45 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#46 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#47 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#48 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]
`

Not working in Magento 2.2.2 - Production Mode

Installed the extension successfully in Mage version 2.2.2. When tried to access admin, it keeps loading forever and throws below exception. Neither FAQ nor FAQ Group is loading in admin. The store is set to production mode.

Failed to load the "Magento_Ui/js/grid/editing/editor" component.

When the store is set back to development mode, it works as expected.

How do I resolve it?

Thanks

FAQ Groups Aligning

The FAQ icon groups do not stay centred with different device sizes.
For example-: If I have created 4 FAQ Groups, on the frontend they are always left-aligned. It would be great if these groups can be aligned to the centre and be responsive according to the devices. See the screenshot below for more information.
Thank you.
Aman
FAQ
FAQ1

Selecting two ore even more groups in block wizard

Hi Prince,

would be a nice feature if it would be possiblle to define more than one group id in the block call. At the moment only one id can be specified.

For example it could look like group_id="1,2,5,7" or something like this.

Maybe you can add this to your feature list.

Have a nice day
Reagrds,
Chequille

Accordion not working, please help

Hi there, I've installed the FAQ plugin in a test environment(maintenance mode) and changed the colours in the CSS file to fit the overall design of the website. Unfortunately when I go to my FAQ page the colours have been changed, but if I decide to go to another page(home page p.e.) and then go back to the FAQ page - the accordion has disappeared and all the questions/answers are open? Any help will be appreciated!
screen shot 2018-08-07 at 12 59 40

Change page url

Hi, how can we change the urlkey from faq to something else (for each storeview)?

Accordion is not working.

If I open the page in the private mode, the accordion is working. But if I refresh the page the accordion, the function is gone. The website is in my developer's local server and all the caches are disabled at the moment.

Here is the problem page and I'm using the Fatest theme of Codazon.

https://mencom.vn.cisinlive.com/faq

Before refresh
before refresh

After refresh
after refresh

Please advise.

Thank you,
Eddie

FAQ page URL

Hello, can anyone tell me what is the URL for FAQ page once the plugin is installed?

Thank you

Permissions issue on edit FAQ item

I have all of the boxes for FAQ checked for a user role, but while logged in as a user with the specified role, and try to edit an existing FAQ entry I get: Sorry, you need permissions to view this content.

When I go into User Roles and Resources I have every check marked for FAQ and FAQ Group.

We are able to edit FAQ items as Administrator but I don't want to give out Admin accounts for things like this.

Magento 2.3

Page builder issue

Preconditions

 2.3.3 with page builder enabled

Steps to reproduce (*)

  1. Install latest version of this module
  2. go to admin and trying editing html block for any faq

Screen Shot 2020-08-06 at 6 27 36 PM

Expected result

  Open html editor popup 

Actual result

 After clicking on the icon nothing happens.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.