I am using Silverstripe 3.1 version and for a week I am trying to add a content block module to it. But every time I add module I get some errors. Now I am trying to add this one.
https://github.com/bummzack/page-blocks
Installation is clear, I edit the necessary files, add it to my page.php and when I make new page and try to add a text block to it I get error -
Error at line 761 of /...wwwroot/framework/core/Object.php
Ok then I try to add other module , it is this - > https://github.com/NobrainerWeb/Silverstripe-Content-Blocks
When I add this module, the install is clean, no error in dev mod, db added perfectly. I see all block menus in admin panel, bet when I try to add blocks I get internal server error.
Can someone please help me?
I am despered. Sorry for bad English language, not my native.
Error;
[User Error] Uncaught Exception: Object->__call(): the method 'isnew' does not exist on 'TextBlock'
GET /admin/pages/edit/EditForm/field/Blocks/add-multi-class/TextBlock
Line 761 in /var/www/vhosts/erlanda/erlanda/wwwroot/framework/core/Object.php
Related
So I'm setting up a sylius project using docker and am getting an error when I first tried to load the page. The docker set up on sylius website didn't seem to work so I made my own docker files and can successfully start the docker containers. The error is below:
An exception has been thrown during the rendering of a template ("Cannot find name for "en_UK" locale code").
During the installation, sylius asks whether you want en_US or something different so I typed en_UK, presuming that was the notation required. Upon setup completion, I tried to load root page and I get the error message above. However, strangely, on the symfony toolbar on the error page it says US web store.
If anyone could help at all it would be greatly appreciated. Thank you in advance.
Possible ways:
go to localhost/admin, enter your login/password which you entered at the install moment, open Channels section, and there add change default locale/add new to locale list;
modify a <project-root>/config/services.yaml and change locale value to another;
in the worst case try to run php bin/console sylius:install command and reinstall database with a en_US at the beginning, then edit Admin section to en_UK
en_UK means "English (Ukraine)". No wonder it was missing. What you wanted was probably en_GB.
I receive an error when going in backend Catalog->Categories:
Fatal error: Method
Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an
exception, caught Error: Call to a member function getOptionArray() on
null in
/home/hubert09/domains/domadeco.com/public_html/vendor/magento/module-ui/Component/Wrapper/UiComponent.php
on line 0
I found it after upgrade Magento from 2.2.0-rc to 2.2.5
thanks to magento profiler i found the problem is in:
/vendor/magento/module-catalog/view/adminhtml/templates/catalog/category/edit/assign_products.phtml
$block->getGridHtml();
that line generate problems
=======SOLVED=========
problem caused by 3th part module Oneleek_DraggableProducts. On 2.2.5 it doesnt work. Turn off that module solve the problem.
IF You migrated M1 to M2 then you are facing something below error during cmd execution The store that was requested wasn't found. Verify the store and try again.
please
don't change in vendor
module-store files :
/vendor/magento/module-store/Model/StoreManager.php or
/vendor/magento/module-store/Model/StoreRepository.php
just simply apply below steps:
I just recently came across this same situation after migrating from Magento 1.9.3.8 to 2.3.0 and hope my answer can be of assistance. The problem came from deleting multiple stores 96 of them to be exact. I tried all the other answers here but was still getting the same error.
The fix for me was removing the old store data from inside of the "core_config_data". The problem is that when the Magento is loading the run time configuration data it is finding the old stores and trying to resolve them. Before cleaning the data from the database I HIGHLY recommend you run the SELECT query below to make sure you delete the correct stores.
SELECT * FROM core_config_data WHERE scope = 'stores';
WARNING: MAKE SURE TO BACKUP YOUR DATABASE BEFORE RUNNING THIS!
DELETE FROM core_config_data WHERE scope_id != 1 AND scope = 'stores';
Now execute all magento commands you can see the "The store that was requested wasn't found. Verify the store and try again" fixed by query
Fatal error: Method
Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an
exception in
C:\wamp64\www\mage2\vendor\magento\module-ui\Component\Wrapper\UiComponent.php
on line 0
Now check your admin above fatal error also solved blahhh... blahh...
(Note fatal error_Magento\Ui\TemplateEngine\Xhtml\Result::__toString()
depedent store module so don't change module-store vendor otherwise
admin side grid/list catalog you can'not see proper data)
I am unable to create a new package from module builder. In module builder, when I enter a package name and key and hit save, it does nothing.
When I inspect in chrome, the console logs the following error:
Uncaught TypeError: Cannot read property 'value' of undefined
at validate_form (sugar_grp1.js:228)
at check_form (sugar_grp1.js:160)
at Object.handleSave (ModuleBuilder.js:905)
at HTMLInputElement.onclick (/XXXXXX/index.php?module=ModuleBuilder&action=index&type=mb#ajaxUILoc=&mbContent=module%3DModuleBuilder%26action%3Dpackage%26new%3D1:1)
Any suggestions on what I can look at or do to debug?
I'm using SuiteCRM 7.7.8
Php 7
I thought this might be a permissions issue, so i made sure all folders and files are 755 and tried to create the package again but got the same error.
I do not have any custom modules. this was the first one im trying to build.
I get similar errors if i try to export a module in studio also.
When I dig deeper, the exact line that fails in sugar_grp1.js is var current_module=document.getElementsByName("view_module")[0].value;
There is no element with name view_module on the page. It appears that this is happening to other users also. Please see: https://suitecrm.com/community/forum/suitecrm-7-0-discussion/12418-unable-to-create-package-in-module-builder#42665
UPDATE: I have done the usual repair and rebuild everything along with JS groupings and JS. Still the same.
An easy solution, see following steps:
Open /cache/include/javascript/sugar_grp1.js
Go to line 228 or find the next text:
var current_fields='';var current_module=document.getElementsByName("view_module")[0].value;$.ajax({type:"GET",url:"index.php?to_pdf=1&module=ModuleBuilder&action=getModuleFields¤t_module="+current_module,async:false,success:function(result){current_fields=JSON.parse(result);},error:function(xhr,status,error){var err=eval("("+xhr.responseText+")");}});for(k=0;k<current_fields.length;k++){if(isError!=true){val=current_fields[k].toUpperCase();if((operator=="=="&&val==item1)||(operator=="!="&&val!=item1)){isError=true;add_error_style(formname,validate[formname][i][nameIndex],'Invalid Value: Field Name already exists');}}}
Remove this line.
QuickRepair.
Clear your Browser Cache and try again.
We have inherited a magento (CE 1.8.1.0) installation that is showing the following error on a Friday morning on opening the product page:
Fatal error: Call to a member function setType() on a non-object in /data/www.walls.pk/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Collection.php on line 54
There have been no changes to the code on the server that was running fine for the last 6 months.
Can there be a server related or configuration related change (i am thinking from the hosting company) or a version upgrade that causes such an issue ?
Your core eav entity model is unable to instantiate.
$entityTypeId = (int)Mage::getModel('eav/entity')->setType(Mage_Catalog_Model_Product::ENTITY)->getTypeId();
Assuming you have a file that exists in:
app\code\core\Mage\Eav\Model\Entity.php
Clear all caches and delete any cache folders in
root/var/
Run Magento's database fix utility.
Post your
root/var/log/exception.log
and
system.log
contents ( Enable logs if they're empty ).
Check your apache logs for detailed info.
With a module I added an custom customer attribute.
When a client is logged in and want to edit their account information or want to change their password on frontend the following error comes up:
Fatal error: Class 'Zend_Log' not found in /app/code/community/Amar/Profile/Model/Customer/Attribute.php on line 49
I build this website local and uploaded it to the server.
On the local environment this error is not showing up, this error only showing up on the server.
I think it has to do something with file permissions.
Does anyone have a solution for this?
the problem has been solved.
On the live server there was another PHP version which was not compatible with the extension.
For me a function loadByCode() causes the issue, I have renamed it and it is working fine. We should not use generic method names in custom modules.
The function is in \app\code\community\Amar\Profile\Model\Customer\Attribute.php file.