Something went wrong.

Trying to access array offset on value of type null.
Trying to access array offset on value of type null on line 252 in /chroot/home/eidolon/eidolonhost.com/html/billing/vendors/blesta/parsedown/Parsedown.php
UnknownException::setErrorHandler
Line 200

/chroot/home/eidolon/eidolonhost.com/html/billing/vendors/monolog/monolog/src/Monolog/ErrorHandler.php

Monolog\ErrorHandler->handleError
Line 252

/chroot/home/eidolon/eidolonhost.com/html/billing/vendors/blesta/parsedown/Parsedown.php

Parsedown->lines
Line 52

/chroot/home/eidolon/eidolonhost.com/html/billing/vendors/blesta/parsedown/Parsedown.php

Parsedown->text
Line 52

/chroot/home/eidolon/eidolonhost.com/html/billing/helpers/text_parser/text_parser.php

TextParser->encode
Line 46

/chroot/home/eidolon/eidolonhost.com/html/billing/app/controllers/client_maintenance.php

ClientMaintenance->index
Line 142

/chroot/home/eidolon/eidolonhost.com/html/billing/vendors/minphp/bridge/src/Lib/Dispatcher.php

Dispatcher::dispatch
Line 21

/chroot/home/eidolon/eidolonhost.com/html/billing/index.php

196
                foreach ($this->Definition[$marker] as $definitionType)
197
                {
198
                    $Definition = $this->{'identify'.$definitionType}($Line, $CurrentBlock);
199
 
200
                    if (isset($Definition))
201
                    {
202
                        $this->Text[$definitionType][$Definition['id']] = $Definition['data'];
203
 
204
                        continue 2;
205
                    }
206
                }
207
            }
208
 
209
            # ~
210
 
211
            $blockTypes = $this->unmarkedBlockTypes;
212
 
213
            if (isset($this->Block[$marker]))
214
            {
215
                foreach ($this->Block[$marker] as $blockType)
216
                {
217
                    $blockTypes []= $blockType;
218
                }
219
            }
220
 
221
            #
222
            # ~
223
 
224
            foreach ($blockTypes as $blockType)
225
            {
226
                $Block = $this->{'identify'.$blockType}($Line, $CurrentBlock);
227
 
228
                if (isset($Block))
229
                {
230
                    $Block['type'] = $blockType;
231
 
232
                    if ( ! isset($Block['identified']))
233
                    {
234
                        $Elements []= $CurrentBlock['element'];
235
 
236
                        $Block['identified'] = true;
237
                    }
238
 
239
                    if (method_exists($this, 'addTo'.$blockType))
240
                    {
241
                        $Block['incomplete'] = true;
242
                    }
243
 
244
                    $CurrentBlock = $Block;
245
 
246
                    continue 2;
247
                }
248
            }
249
 
250
            # ~
251
 
252
            if ($CurrentBlock['type'] === 'Paragraph' and ! isset($CurrentBlock['interrupted']))
253
            {
254
                $CurrentBlock['element']['text'] .= "\n".$text;
255
            }
256
            else
257
            {
258
                $Elements []= $CurrentBlock['element'];
259
 
260
                $CurrentBlock = array(
261
                    'type' => 'Paragraph',
262
                    'identified' => true,
263
                    'element' => array(
264
                        'name' => 'p',
265
                        'text' => $text,
266
                        'handler' => 'line',
267
                    ),
268
                );
269
            }
270
        }
271
 
272
        # ~
273
 
274
        if (isset($CurrentBlock['incomplete']) and method_exists($this, 'complete'.$CurrentBlock['type']))
275
        {
276
            $CurrentBlock = $this->{'complete'.$CurrentBlock['type']}($CurrentBlock);
277
        }
278
 
279
        # ~
280
 
281
        $Elements []= $CurrentBlock['element'];
282
 
283
        unset($Elements[0]);
284
 
285
        # ~
286
 
287
        $markup = $this->elements($Elements);
288
 
289
        # ~
290
 
291
        return $markup;
292
    }
293
 
294
    #
295
    # Atx
296
 
297
    protected function identifyAtx($Line)
298
    {
299
        if (isset($Line['text'][1]))
300
        {
301
            $level = 1;
302
 
303
            while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
304
            {
305
                $level ++;
306
            }
307
 
308
            $text = trim($Line['text'], '# ');