Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error: invalid memory address or nil pointer dereference #75

Open
ankemzi opened this issue Jul 31, 2019 · 0 comments
Open

runtime error: invalid memory address or nil pointer dereference #75

ankemzi opened this issue Jul 31, 2019 · 0 comments

Comments

@ankemzi
Copy link

ankemzi commented Jul 31, 2019

We are experiencing issues compiling our templates. Any help or recommendations will be extremely useful and appreciated.
the error gotten is " runtime error: invalid memory address or nil pointer dereference - Line: 41, Column: 5, Length: 3
STACK:"

The script being compiled contains the following code, I cant seem to solve the issue.

**`extends ./../layout

block menu
+topMenu("items")

block left_menu
+leftMenu("items")

block content
$selectedPage = Page
$selectedCity = CityID
$selectedCategory = CategoryID
$selectedShippingTo = ShippingTo
$selectedShippingFrom = ShippingFrom
$viewUser = ViewUser
$sortby = SortBy
$account = Account
$l = Localization
div.ui.grid.stackable.divided
div.three.wide.column.t-left-menu-items
if EnableStoreStaffUI
if ViewUserStore.VerificationRequired
a.ui.button.red.fluid[href="/verification/encryption"] #{Localization.Auth.VerifyAccount}
div.ui.section.divider.left-menu
if !HideAdvertisings
import ./../advertising/partial_advertising
import C:\Users\user\go\src\marketplaceproject-clone\student-free-market\deploy\package\templates\mixin_right_menu.amber
$SelectedPackageType = SelectedPackageType
$Localization = Localization
$ShippingFrom = ShippingFrom
$ShippingFromList = ShippingFromList
$ShippingTo = ShippingTo
$ShippingToList = ShippingToList
$City = City
$GeoCities = GeoCities
$SortBy = SortBy
$Category = Category
$SubCategory = SubCategory
$Query = Query
+RightMenu($SelectedPackageType, $Localization, $ShippingFrom, $ShippingFromList, $ShippingTo, $ShippingToList, $SelectedPackageType, $City, $GeoCities, $SortBy, $Category, $SubCategory, $Query)
div.thirteen.wide.column
form.ui.input.icon.fluid[method="GET"][action="/marketplace"]
input[type="hidden"][name="category"][value=0]
input[type="hidden"][name="subcategory"][value=0]
input[type="text"][name="query"][placeholder=Localization.Items.LookingFor][value=Query]
i.icon.search
div.ui.four.item.menu.secondary.pointing
a.item[href="/marketplace/"]
[class="active"] ? SelectedPackageType == "all"
i.icon.filter
| #{Localization.Items.AllTypes}
a.item[href="/marketplace/mail/"]
[class="active"] ? SelectedPackageType == "mail"
i.icon.envelope.open.outline
| #{Localization.Items.Mail}
a.item[href="/marketplace/drop/"]
[class="active"] ? SelectedPackageType == "drop"
i.icon.sticky.note.outline
| #{Localization.Items.Drop}
a.item[href="/marketplace/drop preorder/"]
[class="active"] ? SelectedPackageType == "drop preorder"
i.icon.warehouse
| #{Localization.Items.DropPreorder}
if len(ViewSerpItems) > 0
div.ui.grid.stackable
each $item in ViewSerpItems
div.four.wide.column
import ./mixin_item_row
$i = $item
$u = $viewUser
+itemRow($i, $u, $l)
if len(ViewSerpItems) == 0
div.ui.icon.message
i.icon.cart
div.content
div.header #{Localization.Items.NoItems}
if len(Pages) > 1
$query = Query
div.ui.section.divider
div.ui.pagination.menu.mini
each $page in Pages
div.item
.active ? $page == $selectedPage
a[href="?page="+$page + "&city="+$selectedCity + "&category="+$selectedCategory + "&sortby="+$sortby + "&account="+$account + "&shipping-to="+$selectedShippingTo + "&shipping-from="+$selectedShippingFrom + "&query=" + $query] #{$page}
`**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant