<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview - My Forums]]> https://forums.modx.com/thread/?thread=4143 <![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25017
mysql 3.23.58

Apache 2.0.46 (Red Hat)]]>
Dimmy Apr 26, 2005, 10:14 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25017
<![CDATA[Re: FIXED]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25016 Ok, I've found the problem. laugh

The SQL query in question had a ; at the end it - I removed it and everything was fine. All other queries don't have ; in the end, so there was only a problem with this specific one.

Maybe you can remove this in the next release?


Many thanks reportra. Good catch smiley

It will be added to the next release

Keep up the good work.

PS. What version MySQL are you using btw?

Best regards,]]>
xwisdom Apr 26, 2005, 09:21 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25016
<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25015 but is there already a solution? see above
edit manager/processors/cache_sync.class.processor.php and remove the ; in line 142

dimmy, what php & mysql versions do you use?]]>
reportra Apr 26, 2005, 09:16 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25015
<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25014 same thing again, the error throws up the first time in the installer and then when working on the site...

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /<path>/manager/processors/cache_sync.class.processor.php on line 146

However I tried it also on a different system with Apach2, MySQL 4.1 and PHP5 and everything works like a charm, so my guess this error must be related to the specific system configuration (Apache 1.3.27, MySQL 3.23.58 and PHP 4.3.3).

When I manually execute the SQL statement which causes the error in phpmyadmin I'll don't get a warning but everything's executed proberly (0 rows returned)!?
I have the same problems on my server
started a treat did not saw this before sorry
but is there already a solution?

using php 4.3.2]]>
Dimmy Apr 26, 2005, 09:12 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25014
<![CDATA[FIXED]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25013

The SQL query in question had a ; at the end it - I removed it and everything was fine. All other queries don't have ; in the end, so there was only a problem with this specific one.

Maybe you can remove this in the next release?


file: manager/processors/cache_sync.class.processor.php

141 WHERE plugs.disabled=0
142 ORDER BY sysevt.name;
143 ";

CHANGE TO

141 WHERE plugs.disabled=0
142 ORDER BY sysevt.name
143 ";]]>
reportra Apr 26, 2005, 09:12 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview?page=2#dis-post-25013
<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25012

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /<path>/manager/processors/cache_sync.class.processor.php on line 146

However I tried it also on a different system with Apach2, MySQL 4.1 and PHP5 and everything works like a charm, so my guess this error must be related to the specific system configuration (Apache 1.3.27, MySQL 3.23.58 and PHP 4.3.3).

When I manually execute the SQL statement which causes the error in phpmyadmin I'll don't get a warning but everything's executed proberly (0 rows returned)!?]]>
reportra Apr 26, 2005, 09:02 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25012
<![CDATA[Re: Manager]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25011
Did you run the instaler? If so then this line should have been executed:

ALTER TABLE `{PREFIX}site_plugins` ADD COLUMN `disabled` TINYINT NOT NULL COMMENT 'Disables the plugin' AFTER `properties`;

If you did a menual install please check to ensure that your system_eventnames, site_plugins and site_plugin_events tables were properly updated.

I'd run the installer, it was a fresh install. There was no Etomite or MODx there before, plain fresh empty database.

I've checked the database, the site_plugins table has the field "disabled" as tinyint(4) there.

However all plugin tables involved in the query in cache_sync class, line 146, are empty (cms_site_plugins: 0 records, cms_site_plugin_events: 0 records, cms_system_eventnames: 74 records) - is this ok or should there be any plugin records?

A inserted echo $sql in line 144 gives me this sql query:

SELECT sysevt.name as 'evtname', pe.pluginid, plugs.name
FROM `modx_test`.cms_system_eventnames sysevt
INNER JOIN `modx_test`.cms_site_plugin_events pe ON pe.evtid = sysevt.id
INNER JOIN `modx_test`.cms_site_plugins plugs ON plugs.id = pe.pluginid
WHERE plugs.disabled=0 ORDER BY sysevt.name;

I'm gonna erase the installation and try again, I'll post here if it works or not smiley]]>
reportra Apr 24, 2005, 10:44 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25011
<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25010
Treeview does not have a context menu at topmost parent (ID=0, globe picture).

I don't believe there ever was a context menu on id 0, correct?
Yes, you're right. Sorry, I thought there had been one.

Maybe we can have a context menu there to create folder and docs also from the topmost tree point?]]>
reportra Apr 24, 2005, 10:23 AM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25010
<![CDATA[Re: Manager]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25009 1.
When I'm doing things that involve database operation (like Configuration & Save, Create Folder, Create Doc) I always receive


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /<path>/manager/processors/cache_sync.class.processor.php on line 146
(it's same message as occured in in installer, see above; this is now quite annoying since it doesn't finishing showing the page but stops with Cannot modify header information - headers already sent by)


Hi,

Here are a few things to check:

Did you run the instaler? If so then this line should have been executed:

ALTER TABLE `{PREFIX}site_plugins` ADD COLUMN `disabled` TINYINT NOT NULL COMMENT 'Disables the plugin' AFTER `properties`;

If you did a menual install please check to ensure that your system_eventnames, site_plugins and site_plugin_events tables were properly updated.

Best regard,

Thank]]>
xwisdom Apr 23, 2005, 10:32 PM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25009
<![CDATA[ [fixed 1.0pre2] A couple things in the tech preview]]> https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25008 Treeview does not have a context menu at topmost parent (ID=0, globe picture).
I don't believe there ever was a context menu on id 0, correct?]]>
xwisdom Apr 23, 2005, 10:24 PM https://forums.modx.com/thread/4143/fixed-1-0pre2-a-couple-things-in-the-tech-preview#dis-post-25008