Giter VIP home page Giter VIP logo

Comments (6)

boldsidney avatar boldsidney commented on August 16, 2024 1

The issue is probably related to that Uncaught referenceError that you're getting, which is strange because the module doesn't do anything with javascript on the admin sales/order/view page.

Can you post the full console output?

What does your html (view page source) on the broken page look like ? Some kind of error might be visible in there.

from magento2-ordercomments.

moneef avatar moneef commented on August 16, 2024 1

console log :

(index):322 Uncaught ReferenceError: require is not defined
    at (index):322
(anonymous) @ (index):322
(index):421 Uncaught ReferenceError: require is not defined
    at (index):421
(anonymous) @ (index):421
(index):437 Uncaught ReferenceError: require is not defined
    at (index):437
(anonymous) @ (index):437

html page error :

<b>Fatal error</b>:  Uncaught Error: Call to a member function registry() on null in /home/moneef/public_html/vendor/magento/module-sales/Block/Adminhtml/Order/AbstractOrder.php:59
--
  | Stack trace:
  | #0 /home/moneef/public_html/vendor/boldcommerce/magento2-ordercomments/Plugin/Block/Adminhtml/SalesOrderViewInfo.php(20): Magento\Sales\Block\Adminhtml\Order\AbstractOrder-&gt;getOrder()
  | #1 /home/moneef/public_html/vendor/magento/framework/Interception/Interceptor.php(152): Bold\OrderComment\Plugin\Block\Adminhtml\SalesOrderViewInfo-&gt;afterToHtml(Object(Hexasoft\FraudLabsPro\Block\Adminhtml\Order\View\Info\Interceptor), '\n\t\t&lt;div class=&quot;...')
  | #2 /home/moneef/public_html/var/generation/Hexasoft/FraudLabsPro/Block/Adminhtml/Order/View/Info/Interceptor.php(26): Hexasoft\FraudLabsPro\Block\Adminhtml\Order\View\Info\Interceptor-&gt;___callPlugins('toHtml', Array, Array)
  | #3 /home/moneef/public_html/vendor/hexasoft/module-fraudlabspro/view/adminhtml/templates/order/view/tab/flpsummary.phtml(2): Hexasoft\FraudLabsPro\Block\Adminhtml\Order\Vie in <b>/home/moneef/public_html/vendor/magento/module-sales/Block/Adminhtml/Order/AbstractOrder.php</b> on line <b>59</b><br />

P.S i disabled hexasoft/module-fraudlabspro and it worked, i think there is a clash between the two modules.

fraudlabspro Disabled | OrderComment Enabled = working fine
fraudlabspro Enabled | OrderComment Disabled = working fine
fraudlabspro Disabled | OrderComment Disabled = working fine
fraudlabspro Enabled | OrderComment Enabled = Error

from magento2-ordercomments.

boldsidney avatar boldsidney commented on August 16, 2024 1

Hi @moneef
I've updated the extension to 1.1.2. Can you check again if it's now working for you with the new version?

from magento2-ordercomments.

boldsidney avatar boldsidney commented on August 16, 2024

Hi @moneef,

I've installed this module on a clean magento 2.1.7 install with only sample data, did a few test orders with comments in the checkout, and viewed them in the admin. However I didn't get the error that you're specifying. Does this error go away if you remove/disable the order comments module? If so, are there any other relevant error messages in your

  • browser console
  • magento logs
  • php logs
    when you're getting this error with the order comments module enabled?

from magento2-ordercomments.

moneef avatar moneef commented on August 16, 2024

Hey @boldsidney ,

yes when i disable the module everything works fine, and also tried to remove it entirely from database and files, and reinstall it also tried di:compile and static-content:deploy

cleared

var/di
var/generation

and redo everything with no luck

browser console error Uncaught ReferenceError: require is not defined,
but there is nothing in PHP or Magento Logs.

from magento2-ordercomments.

moneef avatar moneef commented on August 16, 2024

@boldsidney ,

Beautiful, now its working with both extensions enabled.

great work 👍

from magento2-ordercomments.

Related Issues (20)

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.