A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: controllers/Events.php

Line Number: 121

Backtrace:

File: /home/uniform/html/unimap2/ci/application/controllers/Events.php
Line: 121
Function: _error_handler

File: /home/uniform/html/unimap2/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: menuCurrent

Filename: event/header.php

Line Number: 5

Backtrace:

File: /home/uniform/html/unimap2/ci/application/views/layout/event/header.php
Line: 5
Function: _error_handler

File: /home/uniform/html/unimap2/ci/application/views/layout/event/event.php
Line: 49
Function: view

File: /home/uniform/html/unimap2/ci/application/core/MY_Controller.php
Line: 68
Function: view

File: /home/uniform/html/unimap2/ci/application/controllers/Events.php
Line: 135
Function: _layout

File: /home/uniform/html/unimap2/index.php
Line: 315
Function: require_once

" id="login_block" class="fb_block"> 登入
` }); var app = new Vue({ el: '#app', data: { filter: '', county: 0, cityNum: 0, cityList: [], placeList: [], placeName: "", placeAddress: "", place_sn: 0, selected: '', getLocation: false, }, mounted() { }, methods: { getCityList: function () { let countyIndex = parseInt(this.county) - 1; this.cityList = cities[countyIndex]["cities"]; this.cityNum = 0; }, getCityNum: function () { }, getLocations: function () { let county = this.county, cityNum = this.cityNum; let params = new URLSearchParams(); // let follow_count=this.follow_count; params.append("county", county); params.append("city", cityNum); params.append("country", 1); axios.post('/place/getPlaceList', params) .then(function (response) { // console.log(response.data.places); app.placeList = response.data.places; }) .catch(function (error) { console.log(error); }); }, setLocation: function (name, address, sn) { this.placeName = name; this.placeAddress = address; this.selected = sn; } }, computed: { filterPlace: function () { var places = this.placeList.filter((place) => { return place.name.toLowerCase().includes(this.filter.toLowerCase()); }); return places; } }, watch: { placeName: function () { let locationData = { name: this.placeName, sn: this.selected, address: this.placeAddress }; this.place_sn=this.selected; // this.$cookies.set('locationData', locationData); } } })