#1 2016-09-05 13:59:43

Deivid
Member
Registered: 2016-07-11
Posts: 37
Website

Extended field php error

    A PHP Error was encountered

    Severity: Warning

    Message: Illegal string offset 'url'

    Filename: article/article.php

    Line Number: 341

n" target="_blank" class="selectable">en/
A PHP Error was encountered

Severity: Warning

Message: Illegal string offset 'path'

Filename: article/article.php

Line Number: 341
n

and article.php 341 line is ulr function

						<!-- URL -->
						<dl>
							<dt>
								<label for="url_<?php echo $lang; ?>"><?php echo lang('ionize_label_url'); ?></label>
							</dt>
							<dd>
								<input id="url_<?php echo $lang; ?>" name="url_<?php echo $lang; ?>" class="inputtext" type="text" value="<?php echo $languages[$lang]['url']; ?>"/>
								<?php if ( ! empty($urls[$lang])) :?>
									<br/>
									<?php echo lang('ionize_label_full_url'); ?> : <a href="<?php echo $urls[$lang]['url']; ?>" target="_blank" class="selectable"><?php echo $lang; ?>/<?php echo $urls[$lang]['path']; ?></a>

								<?php endif ;?>
							</dd>
						</dl>

Offline

#2 2016-09-06 20:10:19

adaliszk
Ionize Friend
From: Germany
Registered: 2010-09-20
Posts: 397
Website

Re: Extended field php error

The $urls[$lang] is undefined, print out the foreach items for better clues.


Webdeveloper, Programmer, Application developer, Ionize friend
@adaliszk

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations