Revo Discussions & Support - MODX Community Forums https://forums.modx.com/board/?board=40 <![CDATA[Url rewrite or Friendly url]]> https://forums.modx.com/thread/104993/url-rewrite-or-friendly-url#dis-post-564604
On many modern sites I see this pattern, but haven't figured out how to do it with modx yet.

Say I have a user who clicks on a link on Facebook with the following url: mysite.com/event/3rf78gh9 they will, with my mod_rewrite rule hit a page more commonly known as

index.php?id=23&eventId=3rf78gh9


This works with the following Rewrite_rule.

RewriteRule ^event/([^/]+)/?$ event/?eventId=$1 [L]


My scenario is of cause a bit more complex then this, and I would really like to be able to also do the following:
index.php?id=24&eventId=3rf78gh9

Which should translate to
mysite.com/event/3rf78gh9/messages

Where id 24 is messages

However i can't figure out how to create that type of mod_rewrite rule, please come up with suggestions for this.

Now being a perfectionist I would also like to have my links generated with the same rules. Eg.
[[~24 &eventId=`3rf78gh9`]]


Is it even possible with modx
Best
Moonkin


]]>
https://forums.modx.com/thread/104993/url-rewrite-or-friendly-url#dis-post-564604 Tue, 26 Mar 2019 08:21:24 +0000 https://forums.modx.com/thread/104993/url-rewrite-or-friendly-url#dis-post-564604
<![CDATA[best way to learn modx?]]> https://forums.modx.com/thread/104988/best-way-to-learn-modx#dis-post-564602
I am new to modex and I find it a bit complicated to learn

the documentation on this site seems a bit too brief

it also seems to assume that you have at least some knowledge of modx, and even development

what is worrying is that it seems to be outdated, it seems to refer to things in modx that are not there anymore or have moved

all the books i've found as well as video tutorials are from years ago

so how do I go about learning this software, like a modx for dummies kind of thing?]]>
https://forums.modx.com/thread/104988/best-way-to-learn-modx#dis-post-564602 Tue, 26 Mar 2019 07:22:48 +0000 https://forums.modx.com/thread/104988/best-way-to-learn-modx#dis-post-564602
<![CDATA[No Sub Pages Modx 2.7.1]]> https://forums.modx.com/thread/105003/no-sub-pages-modx-2-7-1#dis-post-564585
I recently upgraded a site to Modx 2.7.1. Now all I see is the home page. No sub pages show at all.

Also in my error log I'm seeing PHP Warning: constant(): Couldn't find constant 32759 in /home/xxxxxxxx/public_html/core/model/modx/modx.class.php on line 678

I found another thread in the forum that suggested the error above may be due to missing fields in database tables due to missing out versions when upgrading, but I've checked and all fields are there.

Can anyone help?

]]>
https://forums.modx.com/thread/105003/no-sub-pages-modx-2-7-1#dis-post-564585 Mon, 25 Mar 2019 03:19:32 +0000 https://forums.modx.com/thread/105003/no-sub-pages-modx-2-7-1#dis-post-564585
<![CDATA[Comment Section]]> https://forums.modx.com/thread/104991/comment-section#dis-post-564544
I'm creating a page with a video and blurb and i want people to be able to leave comments on that video. Also, I'd like to be able to have control on the comments - like approve a comment before it goes up. Is that possible?]]>
https://forums.modx.com/thread/104991/comment-section#dis-post-564544 Fri, 22 Mar 2019 09:56:24 +0000 https://forums.modx.com/thread/104991/comment-section#dis-post-564544
<![CDATA[Some problems with vertical Navigation in MODx]]> https://forums.modx.com/thread/104809/some-problems-with-vertical-navigation-in-modx#dis-post-564542
I want to create a website with vertical navigation using Bootstrap 4 and Modx. Two of the menu items still have sub-items. For this I have created the following chunks:

parentRow
<li>
<a class="nav-link collapsed" data-toggle="collapse" data-target="#submenu" href="[[+wf.link]]">[[+wf.linktext]]<span class="arrow"></span></a>[[+wf.description]]
[[+wf.wrapper]]
</li>

innerTpl
<ul class="sub-menu collapse" id="submenu" aria-expanded="false"[[+wf.classes]]>
[[+wf.wrapper]]
</ul>

My problem is that all submenus open when I click one. Because they have all the same ID:
data-target="#submenu"
id="submenu"

I thought of the following solution

data-target="#[[+wf.linktext]]"

but that didn't work with the id=“ submenu“.


The navigation looks like this:

<li>
<a class="nav-link collapsed" data-toggle="collapse" data-target="#submenu" href="index.php?id=3">Test<span class="arrow"></span></a>
<ul class="sub-menu collapse" id="submenu" aria-expanded="false">
<li><a href="index.php?id=12">Test 1</a></li>
<li><a href="index.php?id=13">Test 2</a></li>
</ul>
</li>

<li>
<a class="nav-link collapsed" data-toggle="collapse" data-target="#submenu" href="index.php?id=7">Test 3<span class="arrow"></span></a>
<ul class="sub-menu collapse" id="submenu" aria-expanded="false">
<li><a href="index.php?id=14">Test 4</a></li>
<li><a href="index.php?id=18">Test 5</a></li>
</ul>
</li>

Have someone a solution?

Best regards,
Michael]]>
https://forums.modx.com/thread/104809/some-problems-with-vertical-navigation-in-modx#dis-post-564542 Thu, 21 Mar 2019 11:16:55 +0000 https://forums.modx.com/thread/104809/some-problems-with-vertical-navigation-in-modx#dis-post-564542
<![CDATA[how to use ipCountryRedirect]]> https://forums.modx.com/thread/104866/how-to-use-ipcountryredirect#dis-post-564541 https://github.com/jdaehne/ipCountryRedirect
Docs is not enough for me. I do not understand how to set it.
What means :
Step
Define all your country-codes in your contexts with the context-key ipcr.countries. Example:

de = de,at,ch
us = us

??
I can see this name into the context settings tab filtering from core to ipCountryRedirect but not sure what can be done there.
and the goal is to set to eng context for non French speaker countries

Thanks

full doc:

f you have 3 Context:

web = Root-Context
de = Germany
us = USA
1. Step
Place the Snippet [[!ipCountryRedirect]] into your Root-Context (web) into your site_start.

2. Step
Define all your country-codes in your contexts with the context-key ipcr.countries. Example:

de = de,at,ch
us = us
Finished!
]]>
https://forums.modx.com/thread/104866/how-to-use-ipcountryredirect#dis-post-564541 Thu, 21 Mar 2019 11:11:31 +0000 https://forums.modx.com/thread/104866/how-to-use-ipcountryredirect#dis-post-564541
<![CDATA[Active Css getresources accordion help]]> https://forums.modx.com/thread/104992/active-css-getresources-accordion-help#dis-post-564538 Below is all the code

CHUNK
 <div class="parallax2 parallax-fix margin-five no-margin-bottom" >
                <img class="parallax-background-img" src="[[*accordian_parallax]]" alt="" />
                <div class="col-md-6 col-xs-12 about-tab-right pull-right">
                    <div class="panel-group accordion-style1" id="accordion-one">
                        [[!getImageList?
        &tvname=`accordian_list`
        &tpl=`service_home_accordian_list` &docid=`[[*id]]`
]]
        
                           
                    </div>
                </div>
            </div>
           


MIGX CHUNK
<!-- accordion item -->
                        <div class="panel panel-default">
                            <div class="panel-heading active-accordion">
                                <a data-toggle="collapse" data-parent="#accordion-one" href="#accordion-one-link[[+additionalField]]"><h4 class="panel-title"><i class="icon-[[+additionalField1]] extra-small-icon vertical-align-middle white-text"></i> [[+title]]<span class="pull-right"><i class="fa fa-minus"></i></span></h4></a>
                            </div>
                            <div id="accordion-one-link[[+additionalField]]" class="panel-collapse collapse in">
                                <div class="panel-body margin-two">
                                    <div class="col-md-3 col-sm-3 col-xs-12 travel-about-img xs-text-center xs-margin-bottom-ten"><img src="[[ImagePlus? 
  &value=`[[+image]]`
]]" title="[[+title]]" alt="" class="white-round-border no-border"/></div>
                                    <div class="col-md-9 col-sm-9 col-xs-12"><p class="text-med light-gray-text">[[+additionalField2]]</p></div>
                                </div>
                            </div>
                        </div>
                        <!-- end accordion item -->

TV MIGX Config

[
{"caption":"Image", "fields":[
{"field":"image","caption":"Image","inputTV":"accordian_image"}
]},
{"caption":"Accordian Order Number", "fields": [
{"field":"additionalField","caption":"Accordian Order Number","inputTVtype":"text"}
]},
{"caption":"Title", "fields": [
{"field":"Title","caption":"Title","inputTVtype":"text"}
]},
{"caption":"Icon", "fields": [
{"field":"additionalField1","caption":"Icon","inputTVtype":"text"}
]},
{"caption":"Content", "fields": [
{"field":"additionalField2","caption":"Content","inputTVtype":"textarea"}
]}

[
{"header": "Image", "width": "100", "sortable": "false", "dataIndex": "image","renderer": "ImagePlus.MIGX_Renderer"},
{"header": "Accordian Order Number", "width": "100", "sortable": "true", "dataIndex": "additionalField"},
{"header": "Title", "width": "100", "sortable": "true", "dataIndex": "Title"},
{"header": "Icon", "width": "100", "sortable": "true", "dataIndex": "additionalField1"},
{"header": "Content", "width": "100", "sortable": "true", "dataIndex": "additionalField2"}
]

] 


I tried this and it does call the active but it opens all of them on landing
 <!-- accordion item -->
                        <div class="panel panel-default">
                           
                            <div class="panel-heading [[+idx:is=`0`:then=`active-accordion`]]"  >
                                
                                <a data-toggle="collapse" data-parent="#accordion-one" href="#accordion-one-link[[+additionalField]]"><h4 class="panel-title"><i class="icon-[[+additionalField1]] extra-small-icon vertical-align-middle white-text"></i> [[+title]]<span class="pull-right"><i class="fa fa-minus"></i></span></h4></a>
                           
                            </div>
                            [[getResources?&idx=`0`]]
                            <div [[+idx:is=`0`:then=`class="active-accordion"`:else=``]]  id="accordion-one-link[[+additionalField]]" class="panel-collapse collapse in ">
                          
                                <div class="panel-body margin-two">
                                    <div class="col-md-3 col-sm-3 col-xs-12 travel-about-img xs-text-center xs-margin-bottom-ten"><img src="[[ImagePlus? 
  &value=`[[+image]]`
]]" title="[[+title]]" alt="" class="white-round-border no-border"/></div>
                                    <div class="col-md-9 col-sm-9 col-xs-12"><p class="text-med light-gray-text">[[+additionalField2]]</p></div>
                                </div>
                            </div>
                        </div>
                        <!-- end accordion item -->
]]>
https://forums.modx.com/thread/104992/active-css-getresources-accordion-help#dis-post-564538 Thu, 21 Mar 2019 09:26:54 +0000 https://forums.modx.com/thread/104992/active-css-getresources-accordion-help#dis-post-564538
<![CDATA[Can't remove doctype from the empty MODX template]]> https://forums.modx.com/thread/104983/can-t-remove-doctype-from-the-empty-modx-template#dis-post-564529
You have to manually create a resource within MODX, Template: (empty). go to the tab Settings and set Content Type: XML, Cachable and Rich Text should be ticked off. In the content field, use the following code: [[!StercSeoSiteMap]]

Problem is, even though I used the empty MODX template for that resource, it puts the doctype in automatically. So the page does not work.
If you look in the source code of my page, you can see it here: view-source:https://storyanalyse.de/sitemaps.xml

I have the same problem when I try to create an rss feed. There's always the doctype in it and thus makes the page not work.

Does anyone know why that happens? How I can make it work?

]]>
https://forums.modx.com/thread/104983/can-t-remove-doctype-from-the-empty-modx-template#dis-post-564529 Thu, 21 Mar 2019 08:34:37 +0000 https://forums.modx.com/thread/104983/can-t-remove-doctype-from-the-empty-modx-template#dis-post-564529
<![CDATA[Problem with a plugin in 2.7.1-pl]]> https://forums.modx.com/thread/104989/problem-with-a-plugin-in-2-7-1-pl#dis-post-564512
I wish to replace all target="_blank" in external links to rel="external nofollow noopener noreferrer". For this I have this little plugin:
<?php
$out = &$modx->resource->_output;
$search = array('target="_blank"');
$replace = array('rel="external nofollow noopener noreferrer"');
$out = str_replace($search,$replace,$out);


It works on OnWebPagePrerender (which means it should work but does nothing).
Any ideas or tips? Thanks for help.]]>
https://forums.modx.com/thread/104989/problem-with-a-plugin-in-2-7-1-pl#dis-post-564512 Wed, 20 Mar 2019 05:42:52 +0000 https://forums.modx.com/thread/104989/problem-with-a-plugin-in-2-7-1-pl#dis-post-564512
<![CDATA[Hide real path links in MIGX/getImageList]]> https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564472
I am using MIGX and getImageList to call to a tv of files for download. What I need is a way to hide the real paths, because this content will be in a paid section of the site.

How can I salt or otherwise hide these links? Right now they are not behind any paywall

Here is the relevant code:
                                <table class="table table-hover">
                                    <thead>
                                        <tr>
                                          <th class="text-left" scope="col">Audio</th>
                                          <th class="text-center" scope="col">Video</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    [[getImageList?
                                        &tvname=`VideosTV`
                                        &tpl=`@CODE:
                                        <tr>
                                            <td>
                                              <a class="col-lg-11 text-left video-text" href="[[+Audio]]" [[- data-toggle="modal" data-target=".Video_[[+idx]]"-]] title="Audio File" download>
                                                    <h3 class="video-title text-left">[[+Video]]</h3> 
                                                    <p class="video-description">[[+Description]]</p>
                                                </a>
                                            </td>
                                            <td>
                                                <a href="[[+Video]]" class="col-lg-1 text-center" title="Video" download>
                                                    <span class="video-download"><i class="fa fa-download"></i></span>
                                                </a>
                                            </td>
                                        </tr>`
                                    ]]
                                    </tbody>
                                </table>


]]>
https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564472 Sat, 16 Mar 2019 07:33:10 +0000 https://forums.modx.com/thread/104939/hide-real-path-links-in-migx-getimagelist#dis-post-564472
<![CDATA[Lock resource or element while editing?]]> https://forums.modx.com/thread/104973/lock-resource-or-element-while-editing#dis-post-564465
I recently ran into an issue when myself and another user were editing a resource at the same time. We overwrote each other's changes but also created caching and pathing issues. Is there a way to lock a resource or element when another user is editing it in order to prevent this type of issue from occurring?

Thanks!]]>
https://forums.modx.com/thread/104973/lock-resource-or-element-while-editing#dis-post-564465 Sat, 16 Mar 2019 12:32:42 +0000 https://forums.modx.com/thread/104973/lock-resource-or-element-while-editing#dis-post-564465
<![CDATA[PHPThumb Images Not Displaying In Manager After ThemePackager]]> https://forums.modx.com/thread/104975/phpthumb-images-not-displaying-in-manager-after-themepackager#dis-post-564460 I have created a theme and packaged it up/installed on another MODX site (both 2.7.1). In the new site the phpthumbs are not displaying in the manager (MIGX TV). They do seem to be generating though as I can see them in core/cache/phpthumb folder.

Here is one of the image tags in question:
<img src="/connectors/system/phpthumb.php?w=400&h=400&aoe=0&far=0&src=assets/images/slides/ss-blue-cyclist.jpg&source=1" alt="">


I'm guessing a path has been broken somewhere since the theme was packaged but I have no idea where. Any ideas?!
Gareth]]>
https://forums.modx.com/thread/104975/phpthumb-images-not-displaying-in-manager-after-themepackager#dis-post-564460 Fri, 15 Mar 2019 05:11:53 +0000 https://forums.modx.com/thread/104975/phpthumb-images-not-displaying-in-manager-after-themepackager#dis-post-564460
<![CDATA[How to solve EventsX Url]]> https://forums.modx.com/thread/104960/how-to-solve-eventsx-url#dis-post-564452
 $event['url'] = $modx->makeUrl($eventsPage).urlencode($event['name']).'/'.$event['id'];
.

Just not sure what format EventsX is expecting $modx->makeUrl($eventsPage) to be in in order to append '/'.$event['id'];

]]>
https://forums.modx.com/thread/104960/how-to-solve-eventsx-url#dis-post-564452 Thu, 14 Mar 2019 06:39:26 +0000 https://forums.modx.com/thread/104960/how-to-solve-eventsx-url#dis-post-564452
<![CDATA[ [SOLVED] Manager won't load after upgrade]]> https://forums.modx.com/thread/104969/solved-manager-won-t-load-after-upgrade#dis-post-564433
I'm experiencing an issue accessing the manager after an upgrade. It's throwing the following errors:

Warning: include_once(/home/NAME/public_html/core/model/modx/modx.class.php): failed to open stream: No such file or directory in /home/NAME/public_html/MANAGER/index.php on line 38

Warning: include_once(): Failed opening '/home/NAME/public_html/core/model/modx/modx.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/NAME/public_html/MANAGER/index.php on line 38

Warning: include(/home/NAME/public_html/core/error/unavailable.include.php): failed to open stream: No such file or directory in /home/NAME/public_html/MANAGER/index.php on line 39

Warning: include(): Failed opening '/home/NAME/public_html/core/error/unavailable.include.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/NAME/public_html/MANAGER/index.php on line 39
Site temporarily unavailable!

I'm thinking the issue has something to do with the path and reference. The core folder is sitting above the site root but is the error is referencing it as if it's not. I tried the usual fixes i.e.:

  • cleared browser cache
  • turned off compress cs and js

I tried to redo the setup but now that's also throwing an error. In addition when i try to clear the cache from the core folder, the file manager in cpanel is saying permission denied (this is not taking place anywhere else but cache folder).

Any insight?

Thanks!]]>
https://forums.modx.com/thread/104969/solved-manager-won-t-load-after-upgrade#dis-post-564433 Thu, 14 Mar 2019 01:58:48 +0000 https://forums.modx.com/thread/104969/solved-manager-won-t-load-after-upgrade#dis-post-564433
<![CDATA[ClassExtender - MyExtUserSchema]]> https://forums.modx.com/thread/104968/classextender---myextuserschema#dis-post-564431
https://bobsguides.com/classextender-class.html

When you first run ClassExtender you edit the following chunks and then run the 'Extend modUser' snippet.

  • MyExtUserSchema
  • MyExtraUserFields

This process creates the 'ext_user_data' table into which all of your specified fields are added.

My (very simplistic) understanding is that the 'MyExtUserSchema' chunk is responsible for the table and field creation in the MODX database and the 'MyExtraUserFields' chunk creates the fields in your User admin area. I know it does some other magic.

If you subsequently need to add more fields to the table it is necessary to add the fields directly to the 'ext_user_data' table using either the command line or something like phpMyAdmin as 'Extend modUser' will not alter an existing 'ext_user_data' table.

So, after a rather long introduction, my actual question is:

When adding additional fields after the initial run of 'Extend modUser', if I add my fields directly into my 'ext_user_data' table and then run the 'Extend modUser' again do I need to add those additional fields to the 'MyExtUserSchema' chunk, or is it sufficient add them only to the 'MyExtraUserFields' chunk.

MODX: 2.7.1
PHP: 7.2.13
ClassExtender: 2.1.0pl
]]>
https://forums.modx.com/thread/104968/classextender---myextuserschema#dis-post-564431 Wed, 13 Mar 2019 07:55:42 +0000 https://forums.modx.com/thread/104968/classextender---myextuserschema#dis-post-564431
<![CDATA[Setup missing bracket error when upgrading to 2.7]]> https://forums.modx.com/thread/104859/setup-missing-bracket-error-when-upgrading-to-2-7?page=2#dis-post-564406
So try again running set up. click to install and get a white screen.

Try uploading 2.6.5 again and running that setup. Same white screen.

Now have to restore the backup.

Tried the same on a second site and succeeded with no error message. Then tried on a third site, and have the same problem as the first.

Any advice on how to consistently upgrade to 2.7 from 2.6.5 without getting error messages about apparently missing brackets?]]>
https://forums.modx.com/thread/104859/setup-missing-bracket-error-when-upgrading-to-2-7?page=2#dis-post-564406 Wed, 13 Mar 2019 05:50:40 +0000 https://forums.modx.com/thread/104859/setup-missing-bracket-error-when-upgrading-to-2-7?page=2#dis-post-564406
<![CDATA[Error message after upgrade to 2.7.0]]> https://forums.modx.com/thread/104677/error-message-after-upgrade-to-2-7-0?page=3#dis-post-564395
[2018-11-29 21:09:41] (ERROR in modProcessor::run @ /var/www/html/modx/core/model/modx/modprocessor.class.php : 177) Flat file processor support is deprecated since version 2.7.0. 


The sever is running

PHP Version 7.1.8
mysql database version: 5.1.73-log

Thoughts?]]>
https://forums.modx.com/thread/104677/error-message-after-upgrade-to-2-7-0?page=3#dis-post-564395 Tue, 12 Mar 2019 07:17:24 +0000 https://forums.modx.com/thread/104677/error-message-after-upgrade-to-2-7-0?page=3#dis-post-564395
<![CDATA[Template variables not saving even though it says 'saved']]> https://forums.modx.com/thread/104958/template-variables-not-saving-even-though-it-says-saved#dis-post-564372
Any help would be appreciated as this is causing lots of issues.]]>
https://forums.modx.com/thread/104958/template-variables-not-saving-even-though-it-says-saved#dis-post-564372 Mon, 11 Mar 2019 09:40:22 +0000 https://forums.modx.com/thread/104958/template-variables-not-saving-even-though-it-says-saved#dis-post-564372
<![CDATA[ [Solved] Cannot save after 2.7.1 upgrade]]> https://forums.modx.com/thread/104953/solved-cannot-save-after-2-7-1-upgrade?page=2#dis-post-564368
I can save chunks, etc. okay.

- No settings changed from MODx 2.7.0, which had been working great.
- core/cache cleared when upgraded. Cleared a second time while troubleshooting.
- cache cleared from within control panel prior to logging out for upgrade.
- Permissions flushed from within control panel prior to logging out for upgrade.
- Browser cache cleared (multiple browsers) prior to upgrade and after upgrade.
- Formit and ReCaptcha packages had been upgraded prior to upgraded...ONLY ONES system told me needed upgrading.
- Upgrade performed manually.
- Reinstalled all packages during troubleshooting.
- Tried turning off the editor. Cannot save setting. Tried uninstalling TinyMCE but it breaks the site (I guess it has to do with the editor still being turned on, which I cannot turn off.
- I see no permissions issues anywhere.

I get the following when I go to the error log ("username" substituted for actual name, of course):

[2019-03-07 13:13:30] (ERROR in modRestCurlClient::__construct @ /home1/username/public_html/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:02] (ERROR in xPDO::getService @ /home1/username/public_html/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:02] (ERROR in modRestCurlClient::__construct @ /home1/username/public_html/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:26] (ERROR in xPDO::getService @ /home1/username/public_html/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:26] (ERROR in modRestCurlClient::__construct @ /home1/username/public_html/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:44] (ERROR in xPDO::getService @ /home1/username/public_html/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:15:44] (ERROR in modRestCurlClient::__construct @ /home1/username/public_html/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2019-03-07 13:16:44] (ERROR in modMenu::getSubMenus @ /home1/username/public_html/core/model/modx/modmenu.class.php : 145) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace bigbrother to the routing based system.
[2019-03-07 13:16:44] (ERROR in modMenu::getSubMenus @ /home1/username/public_html/core/model/modx/modmenu.class.php : 145) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace formsave to the routing based system.
[2019-03-07 13:16:44] (ERROR in modMenu::getSubMenus @ /home1/username/public_html/core/model/modx/modmenu.class.php : 145) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace redirector to the routing based system.
[2019-03-07 13:16:44] (ERROR in modMenu::getSubMenus @ /home1/username/public_html/core/model/modx/modmenu.class.php : 145) modAction support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace quickstartbuttons to the routing based system.



Using PHP 7.0

Thanks. Any help is appreciated.]]>
https://forums.modx.com/thread/104953/solved-cannot-save-after-2-7-1-upgrade?page=2#dis-post-564368 Mon, 11 Mar 2019 06:01:10 +0000 https://forums.modx.com/thread/104953/solved-cannot-save-after-2-7-1-upgrade?page=2#dis-post-564368
<![CDATA[help troubleshooting "Warning: constant(): Couldn't find constant 32759 in ... modx/core/model/modx/modx.class.php on line 690"]]> https://forums.modx.com/thread/104914/help-troubleshooting-warning-constant-couldn-t-find-constant-32759-in-modx-core-model-modx-modx-class-php-on-line-690#dis-post-564334
I just upgraded a neglected site from modx 2.1.6 to 2.7.0. I was getting some php errors before the upgrade that left the front end up, but the manager broken. I found out my shared host upgraded their php, which may have triggered the issues. I backed up my site and did the upgrade. It went smoothly, and everything works fine now, except I get the error: "Warning: constant(): Couldn't find constant 32759 in /home1/mysite/modx/core/model/modx/modx.class.php on line 690" at the top of all of my public pages.

I suspect this is because there have been so many revisions since 2.1.6 and my database probably didn't quite match up.
My only addons are wayfinder and spform. Both are up to date.

cPanel 70.0 (build 66)
Apache 2.2.34
PHP 7.0.33
MySQL 5.6.41-84.1
Perl 5.26.0

What can I do to fix this?

Thanks,
-Dan]]>
https://forums.modx.com/thread/104914/help-troubleshooting-warning-constant-couldn-t-find-constant-32759-in-modx-core-model-modx-modx-class-php-on-line-690#dis-post-564334 Thu, 07 Mar 2019 09:32:03 +0000 https://forums.modx.com/thread/104914/help-troubleshooting-warning-constant-couldn-t-find-constant-32759-in-modx-core-model-modx-modx-class-php-on-line-690#dis-post-564334