Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
4.6 errors
today i decided for the firsst time to view site with the DEBUGGING optsion turned on.
and lo and behold when i view site I see these horrors! what is going on?
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()
textpattern/lib/txplib_publish.php:514 Textpattern\Tag\Registry->process()
Tag error: <txp:custom_field name=“pixiecat” offset=“1” sort=“Posted asc”/> -> Textpattern Notice: Unknown tag attribute: sort. while parsing form foot_images2015 on page defaultV2015_page
textpattern/lib/txplib_misc.php:2152 trigger_error()
textpattern/publish/taghandlers.php:4368 lAtts()
custom_field()
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()
textpattern/lib/txplib_publish.php:514 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/publish/taghandlers.php:3588 parse()
images()
…. texted postive
Offline
Re: 4.6 errors
I agree, it looks a little like gobbledygook, but the clue is in there:
txp:custom_field name=“pixiecat” offset=“1” sort=“Posted asc”/>
and:
Unknown tag attribute: sort
There’s no offset
or sort
attributes for custom_field
. Looks like they’re left over from article_custom (or you meant to use article_custom).
TXP Builders – finely-crafted code, design and txp
Offline
Re: 4.6 errors
well i have spent two days in debugging mode to try and correct the tag errors and warnings. without any success. the only tag i was successful with was changing
listform=
to form=
as for the rest of the errors i have not been able to fix them…. but the site is working, in spite of all the
tag errors
why?
(driving me crazy)
eg this error.
<txp:output_form form="midbar_images" /> -> Notice: Undefined offset: -1 while parsing form midbar_images on page defaultV2015_page
and midbar_images has:
<txp:images category="Midbar" thumbnail="1" form="image-grid" wraptag="section" class="thumbgrid" break="figure" title=""/></txp:images>
<a href="<txp:image_url />" rel="lightbox[gallery-1]"><img src="<txp:image_url thumbnail="1" />" />
and everything works and displays fine
mystery
…. texted postive
Offline
Re: 4.6 errors
You’ve got a stray closing tag after the single (non-container) <txp:images />
tag in the midbar_images form.
</txp:images>
Basically, remove the above.
Offline
Re: 4.6 errors
whew. working through debugging. but what are these errors? no clue where to fix
textpattern/lib/txplib_misc.php:4415 parse()
textpattern/publish/taghandlers.php:487 parse_form()
output_form()
textpattern/vendors/Textpattern/Tag/Registry.php:83 call_user_func()
textpattern/lib/txplib_publish.php:514 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:463 processTags()
textpattern/lib/txplib_misc.php:4476 parse()
textpattern/publish.php:562 parse_page()
also i cannot get this to work ? or do i even need it.
<txp:version />;
it seems that we get the current version without this plugin.
…. texted postive
Offline
Re: 4.6 errors
bici wrote #304276:
whew. working through debugging. but what are these errors? no clue where to fix…
Looks like one of your plugins is not registered for 4.6. Can you list them?
also i cannot get this to work ? or do i even need it.
<txp:version />
That tag doesn’t exist.
Offline
Re: 4.6 errors
philwareham wrote #304282:
Looks like one of your plugins is not registered for 4.6. Can you list them?
<txp:version />
That tag doesn’t exist.
The errors are then likely connected. If there’s no txp:version
, then it will not be registered in the tag registry :-)
TXP Builders – finely-crafted code, design and txp
Offline
Re: 4.6 errors
txp:version
, ? i was using mkp_version
, thinking it returns the current version of txp? but thsi si not crucial and i can remove it
as for plugins that i have these are them:
…. texted postive
Offline
Re: 4.6 errors
Well, there’s an updated version of mkp_version with the plugin’s tag registered, except that when I look at the source, it looks like there’s an error in there… I believe that top section should read:
// TXP 4.6 tag registration
if (class_exists('\Textpattern\Tag\Registry')) {
Txp::get('\Textpattern\Tag\Registry')
->register('mkp_if_version')
->register('mkp_version')
;
}
And the instructions should show just <txp:mkp_version />
as the tag, not without the mkp_
.
EDIT: There’s also an updated version of arc_meta. I’ve no idea about mdp_calendar, that’s pretty old. You may be better off using smd_calendar, of which there is a 4.6-compliant version. I think all the rest are admin-side plugins, so the tag registry problem shouldn’t arise with them as they don’t have public tags.
EDIT II: Wrong, there’s one more public tag in your list, also a very old one. Try using etc_date in place of upm_datetime
. You should be able to do <txp:etc_date date="now" />
and it also accepts the strftime format="…"
attribute like upm_datetime did, I believe.
TXP Builders – finely-crafted code, design and txp
Offline
Re: 4.6 errors
thanks to all i am now error free on my test site. i will move to my live site on the weekend.
…. texted postive
Offline
Re: 4.6 errors
this is too too funny not to share. … So i thought i had all the errors fixed.
I then deployed the working test site to the live site. But everything was borked. In fact worse than before.
Then i discovered that the test working site was using the live site’s DB! But by then I had outputed the test sites wrong DB and overrode the Live DB… causing total havoc! I was worse off than when I started!. Long story short took me another two days to roll back to an error prone site, but more or less working, and then to re-trace and add the fixes suggested herein by the good denizens of Textpattern land.
time for a beer…
Last edited by bici (2017-03-03 05:45:28)
…. texted postive
Offline
Re: 4.6 errors
I’ve had some near misses before too :-)
If you’re on a mac and if you use Sequel Pro (excellent and free / donationware), you can set a user-defined filename string with placeholders that it uses (and remembers) when exporting databases. You can add your own text to it too, for example in the image below (in German, but you get the idea) I add the computer name too so I don’t mix up localhost files exported on the laptop versus on the office computer.
I don’t think you can do that with phpMyadmin, but I may be wrong. Maybe there’s a similar trick for windows users too.
TXP Builders – finely-crafted code, design and txp
Offline