-
Notifications
You must be signed in to change notification settings - Fork 56
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
Warning: array_key_exists #33
Comments
Hi, Apologize for being late to respond. Were you able to figure out this issue? |
I think this is the issue caused because of the wrongly formatted json meta data in the articles. Remove semicolon at the last key=> value pair in the json meta data. Or else make the slug parameter in the json meta data as mandatory. |
I found the same error, to solve, changed the way get section and meta but maybe not is better solution ... anyone have another solution |
This solution worked for me. Code is a bit old and slim is now on v4 but it's working. I'll see how much trouble it is to upgrade it. @shameerc any plans to revive this project? |
Hi James,
Thanks for the suggestion, hope it will help someone.
Unfortunately won't be able to spend time on the project any time soon. So
no plan to revive this project yet.
…On Tue, Dec 17, 2019 at 9:43 AM James Ussery ***@***.***> wrote:
I found the same error, to solve, changed the way get section and meta
Textpress/Textpress.php on line 207
by:
$sections = explode( PHP_EOL . PHP_EOL, $content);
$meta = json_decode(array_shift($sections), true);
to:
$sections = explode( "}", $content);
$meta = json_decode(array_shift($sections)."}", true);
but maybe not is better solution ... anyone have another solution
This solution worked for me. Code is a bit old and slim is now on v4 but
it's working. I'll see how much trouble it is to upgrade it. @shameerc
<https://github.com/shameerc> any plans to revive this project?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=AACDILBJ24MHCVRZONAMDJLQZBRJZA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHBHAZQ#issuecomment-566390886>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDILCAG2ALLHY6PRO23LLQZBRJZANCNFSM4BAO4YCA>
.
|
Ahh bummer it's cool but I can't figure out how to integrate a contact form
yet. I haven't learned slim properly yet. Any way you can toss a contact
page with form in there?
James.
Sent from my phone (I'm Afk)
…On Fri, Jan 10, 2020, 9:12 AM Shameer C ***@***.***> wrote:
Hi James,
Thanks for the suggestion, hope it will help someone.
Unfortunately won't be able to spend time on the project any time soon. So
no plan to revive this project yet.
On Tue, Dec 17, 2019 at 9:43 AM James Ussery ***@***.***>
wrote:
> I found the same error, to solve, changed the way get section and meta
> Textpress/Textpress.php on line 207
> by:
> $sections = explode( PHP_EOL . PHP_EOL, $content);
> $meta = json_decode(array_shift($sections), true);
> to:
> $sections = explode( "}", $content);
> $meta = json_decode(array_shift($sections)."}", true);
>
> but maybe not is better solution ... anyone have another solution
>
> This solution worked for me. Code is a bit old and slim is now on v4 but
> it's working. I'll see how much trouble it is to upgrade it. @shameerc
> <https://github.com/shameerc> any plans to revive this project?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#33?email_source=notifications&email_token=AACDILBJ24MHCVRZONAMDJLQZBRJZA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHBHAZQ#issuecomment-566390886
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AACDILCAG2ALLHY6PRO23LLQZBRJZANCNFSM4BAO4YCA
>
> .
>
--
Shameer C
http://blog.shameerc.com
@shameerc <https://twitter.com/shameerc> | +971 55 919 7753
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=AH756WIDIQE7EH3FGHTWT3LQ47VEDA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISSKUA#issuecomment-572859728>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH756WNFSRJSVVO23SBY7JLQ47VEDANCNFSM4BAO4YCA>
.
|
If it's possible, I would do that through third party instead of building
by myself.
On Fri, Jan 10, 2020 at 8:36 PM James Ussery <[email protected]>
wrote:
… Ahh bummer it's cool but I can't figure out how to integrate a contact form
yet. I haven't learned slim properly yet. Any way you can toss a contact
page with form in there?
James.
Sent from my phone (I'm Afk)
On Fri, Jan 10, 2020, 9:12 AM Shameer C ***@***.***> wrote:
> Hi James,
> Thanks for the suggestion, hope it will help someone.
> Unfortunately won't be able to spend time on the project any time soon.
So
> no plan to revive this project yet.
>
> On Tue, Dec 17, 2019 at 9:43 AM James Ussery ***@***.***>
> wrote:
>
> > I found the same error, to solve, changed the way get section and meta
> > Textpress/Textpress.php on line 207
> > by:
> > $sections = explode( PHP_EOL . PHP_EOL, $content);
> > $meta = json_decode(array_shift($sections), true);
> > to:
> > $sections = explode( "}", $content);
> > $meta = json_decode(array_shift($sections)."}", true);
> >
> > but maybe not is better solution ... anyone have another solution
> >
> > This solution worked for me. Code is a bit old and slim is now on v4
but
> > it's working. I'll see how much trouble it is to upgrade it. @shameerc
> > <https://github.com/shameerc> any plans to revive this project?
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
>
#33?email_source=notifications&email_token=AACDILBJ24MHCVRZONAMDJLQZBRJZA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHBHAZQ#issuecomment-566390886
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AACDILCAG2ALLHY6PRO23LLQZBRJZANCNFSM4BAO4YCA
> >
> > .
> >
>
>
> --
> Shameer C
> http://blog.shameerc.com
> @shameerc <https://twitter.com/shameerc> | +971 55 919 7753
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#33?email_source=notifications&email_token=AH756WIDIQE7EH3FGHTWT3LQ47VEDA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISSKUA#issuecomment-572859728
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AH756WNFSRJSVVO23SBY7JLQ47VEDANCNFSM4BAO4YCA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=AACDILFNIM2PL6Y67PBL3UTQ5CPZBA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUPIAI#issuecomment-573109249>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDILGZDDKWRS6DVAZ72YTQ5CPZBANCNFSM4BAO4YCA>
.
|
phpmailer?
James.
Sent from my phone (I'm Afk)
…On Sat, Jan 11, 2020, 9:09 AM Shameer C ***@***.***> wrote:
If it's possible, I would do that through third party instead of building
by myself.
On Fri, Jan 10, 2020 at 8:36 PM James Ussery ***@***.***>
wrote:
> Ahh bummer it's cool but I can't figure out how to integrate a contact
form
> yet. I haven't learned slim properly yet. Any way you can toss a contact
> page with form in there?
>
> James.
>
> Sent from my phone (I'm Afk)
>
> On Fri, Jan 10, 2020, 9:12 AM Shameer C ***@***.***>
wrote:
>
> > Hi James,
> > Thanks for the suggestion, hope it will help someone.
> > Unfortunately won't be able to spend time on the project any time soon.
> So
> > no plan to revive this project yet.
> >
> > On Tue, Dec 17, 2019 at 9:43 AM James Ussery ***@***.***
>
> > wrote:
> >
> > > I found the same error, to solve, changed the way get section and
meta
> > > Textpress/Textpress.php on line 207
> > > by:
> > > $sections = explode( PHP_EOL . PHP_EOL, $content);
> > > $meta = json_decode(array_shift($sections), true);
> > > to:
> > > $sections = explode( "}", $content);
> > > $meta = json_decode(array_shift($sections)."}", true);
> > >
> > > but maybe not is better solution ... anyone have another solution
> > >
> > > This solution worked for me. Code is a bit old and slim is now on v4
> but
> > > it's working. I'll see how much trouble it is to upgrade it.
@shameerc
> > > <https://github.com/shameerc> any plans to revive this project?
> > >
> > > —
> > > You are receiving this because you were mentioned.
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#33?email_source=notifications&email_token=AACDILBJ24MHCVRZONAMDJLQZBRJZA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHBHAZQ#issuecomment-566390886
> > >,
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/AACDILCAG2ALLHY6PRO23LLQZBRJZANCNFSM4BAO4YCA
> > >
> > > .
> > >
> >
> >
> > --
> > Shameer C
> > http://blog.shameerc.com
> > @shameerc <https://twitter.com/shameerc> | +971 55 919 7753
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
>
#33?email_source=notifications&email_token=AH756WIDIQE7EH3FGHTWT3LQ47VEDA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISSKUA#issuecomment-572859728
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AH756WNFSRJSVVO23SBY7JLQ47VEDANCNFSM4BAO4YCA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#33?email_source=notifications&email_token=AACDILFNIM2PL6Y67PBL3UTQ5CPZBA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUPIAI#issuecomment-573109249
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AACDILGZDDKWRS6DVAZ72YTQ5CPZBANCNFSM4BAO4YCA
>
> .
>
--
Shameer C
http://blog.shameerc.com
@shameerc <https://twitter.com/shameerc> | +971 55 919 7753
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33?email_source=notifications&email_token=AH756WLIX33RYGSRZLOSTN3Q5E5NTA5CNFSM4BAO4YCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIVYFCA#issuecomment-573276808>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH756WNZVH3Y7H3N2DMJUFLQ5E5NTANCNFSM4BAO4YCA>
.
|
Warning: array_key_exists() expects parameter 2 to be array, null given in Y:\home\maynewblog.w\www\src\shameerc\Textpress\Textpress.php on line 213
Warning: array_key_exists() expects parameter 2 to be array, null given in Y:\home\maynewblog.w\www\src\shameerc\Textpress\Textpress.php on line 564
Warning: array_key_exists() expects parameter 2 to be array, null given in Y:\home\maynewblog.w\www\src\shameerc\Textpress\Textpress.php on line 213
What to do?
The text was updated successfully, but these errors were encountered: