Comments (6)
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.
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->getOrder()
| #1 /home/moneef/public_html/vendor/magento/framework/Interception/Interceptor.php(152): Bold\OrderComment\Plugin\Block\Adminhtml\SalesOrderViewInfo->afterToHtml(Object(Hexasoft\FraudLabsPro\Block\Adminhtml\Order\View\Info\Interceptor), '\n\t\t<div class="...')
| #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->___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.
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.
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.
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.
Beautiful, now its working with both extensions enabled.
great work 👍
from magento2-ordercomments.
Related Issues (20)
- No output, not verbosing HOT 1
- Method Not Allowed HOT 4
- PHP Returns Problem on Magento 2.1.14
- Move comment field to first step HOT 2
- Adding comment in order POST call HOT 1
- composer.json is not compatible with php 7.3 (and so with Magento 2.3.3) HOT 5
- Compatability with Magento 2.3.3 HOT 2
- Cache Comments
- Change css of this extension
- Comment field not showing in checkout HOT 3
- Support Magento 2.4 HOT 1
- Can not add custom translation HOT 1
- Issue at production mode HOT 1
- Managing checkout comment REST API HOT 1
- Unable to save comment with Stripe Payment HOT 2
- Adobe issue with extension HOT 1
- Please add the greek translation
- Arabic Translation
- extension not working for billdesk payment method in magento 2.4.3 HOT 6
- Cannot install extension with PHP 8.2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-ordercomments.