opencart category parent Undefined variable: entry_parent - opencart

Im really stressing out on this one, unable to get a fix. Just installed opencart in a sub-folder/ sub-directory and wordpress in the root. Got everything to run fine, currently sharing the same DB. I know its not wise, however im testing. I hit a problem when editing categories, no matter what i try i cannot remove this error when trying to add a category parent under
admin panel->catalog->categories-> data
you should see a nested dropdown table. However instead im greeted with a terrible error in place of this much needed function. Please could somebody assist thats preferably an opencart guru or php whiz.
Here is my error message:
Notice: Undefined variable: entry_parent in /var/www/vhosts/domain.com/httpdocs/store/admin/view/template/catalog/category_form.tpl on line 54

Related

Error occurs in CPanel site when calling livewire actions

I am using Laravel 8 with livewire to create a website.
It works fine until I migrate it to CPanel.
I followed the guide from YouTube to split the whole directory into 2 parts, public_html/shop/v1 contains the public directory with index.php, and public_html/shop_main contains all the codes and files.
It shows this error but I fix it by adding the line 'asset_url' => 'http://myhost.com/shop/v1', in config/livewire.php.
Uncaught ReferenceError
Then I encounter another problem with livewire. The error occurs when i try to change the combo box value which bind to livewire public property.
New error appears
I hardly find any references online regarding this error. By the way, livewire-products is the livewire component to show the product.
I would appreciate any help from experts here.

Coldfusion per application mapping randomly fails

In my application.cfc file I have the following code:
this.mappings["/includes"] = "#expandPath('../../priv/inc/')#";
and then on a page I have the following CF include set up:
<cfinclude template="/includes/imageOptimise-thumbnail.cfm">
For the majority of the time when the page is submitted the imageOptimise-thumbnail page runs without any issue but occasionally it will error saying that it can't find the imageOptimise-thumbnail.cfm. If I resubmit the page, chances are it will work but the question is, why is it sometimes not being able to find the page?
I had a look in the CF Admin and I can't see anything in the logs saying that there was an error but it is clearly showing a Coldfusion 'template not found' error message when it fails.
Anyone got any ideas?
I think your issues stem from the fact that the path used for the mapping is relative.
According to advice in ColdFusion Mappings and Relative Paths,
the moral of the story is to NEVER use expandPath() to create a
mapping that’s relative to the webroot.
Try to make the webroot static as the blog suggests
<cfset this.mappings["/myapplication"] =getDirectoryFromPath(getCurrentTemplatePath())
and navigate to /priv/inc/ from the webroot

POST http://exaple.com/index.php?route=checkout/cart/add 500 (Internal Server Error)

I am new to opencart. Some how I managed to create a website after reading online tutorial.
The website was worked well, but since two day the add to cart button is not working. Its showing some error on console. I tried different browser but same result.
Here I attached the screenshot.
The website is posakaworld.com
Any tips or hint is appreciated :)
I also having the similar issue, please check your
system/log/error.txt
For my case, I installed a new extension, and it shows and error
2017-06-25 9:49:03 - PHP Notice: Undefined variable: checkCart in /Users/Shiro/Sites/opencart/vqmod/vqcache/vq2-catalog_controller_checkout_cart.php on line 724
When I check ajax response, it does not show the error, it is due to production display error off, so finally, I manage to find out it is just a PHP Notice can break the system.
Once I fix the undefined variable notice, my ajax no more error. Everything back to normal. I hope this solution is helped.

Sorry, we're having trouble reaching the server

We have restore site from dev machine to staging. We have list in our site with people picker which is working fine on dev, but on staging it is showing message "Sorry, we're having trouble reaching the server.".
I have try to create one more people picker column in list(Stag), but new column also giving same error.
If i create new list on new column to other list(stag), it is working fine.
Can any one please help me in that.
We are facing this issue due to SP.js file is available on NewForm.aspx page with other js files.
There is some discrepancy while loading the page and error occurs. It is working for us when we removed the reference of SP.js file.
This worked for me
https://social.technet.microsoft.com/wiki/contents/articles/36583.sharepoint-2013-people-picker-error-sorry-were-having-trouble-reaching-the-server.aspx
$webApp = Get-SPWebApplication https://<web adderss>
$newdomain = new-object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain
$newdomain.DomainName ='<Domain Name like domain.com>';
$newdomain.ShortDomainName ='<net bios name (optional)>';
$newdomain.LoginName ='domain\Farm Account'
$newdomain.IsForest='false'
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains.Add($newdomain)
$webapp.update()
To verify
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains

OpenCart Integrate wih template

Currently I using OpenCart v2.3.0.2, after me purchased the theme template, I tried follow the documentation but stuck on here.
Before met this errors, I get some similar error, which is
/var/www/html/public_html/catalog/view/theme/logancee/template/extension/module/featured.tpl on line 2
at the end i solve this error by deactive and active the extension. Now I stuck on the footer.tpl, which is this error.
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/footer.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/cart.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/header.tpl on line 2
Please advice me if you face this kind of error before.
You can end notices in the settings by setting Display Errors to No. Or you can back-trace these errors and variables and fix them accordingly.
The theme you purchased is not prepared to handle some of the extensions, you have already installed.
I suggest you remove ALL extensions, modifications & vQmods that you have added and start adding them again by testing one by one to find out which one is giving you the error!
Also remove all your cached content & files before each step including your browser's cache.