hello
after installing ZenPhoto 1.3.1.2, I have installed TinyMCE 1.3.1 in the extension tabs.
but in the option/plugin tabs, I have the following message : Warning: Invalid argument supplied for foreach() in [...]/zenphotoNB/zp-core/zp-extensions/tiny_mce.php on line 70
and TinyMCE is disabled...
what is the problem ?
I have 2 web sites with the same ISP Provider :
TinyMCE works well with the production site and doesn't work with the latest version of ZP
so the configuration quirk is probably the same and the problem seems to be not located her, don't you think ?
the only difference is that TinyMCE works with version 1.2.9 and no longer works with version 1.3.1.2 :-)
More seriously, there is no difference on the technical environment of the 2 sites.
they are both installed on a Free account, under the root of my account
the difference is that TinyMCE was included in version 1.2.9 and 1.3.0 and has become a plugin on version 1.3.1.2.
is that there has been no change in the code that can cause this error with version 1.3.1.2?
It's working for me in Safari 4 and Firefox 3 and it apparently works for sbillard in IE8 as well.
Make sure you have a configuration file selected,might have been a wrong option set with the updae. Also check if there are JS errors or others. Depending on your browser you might want to check the TinyMCE site for infos as well.
Well, also from your description, there is no difference in the Zenphoto running on each site. So, I guess if there are no differences anywhere they must both be operating the same.
Seriously. I have told you that the PHP "glob" function is not working correctly on the failing site. Clearly that is a difference between them.
I don't understand : on the same website, glob function works well with 1.2.9 and doesn't work with 1.3.1.2.
i have ran phpinfo.php on my web site, and i don't have found anything about glob function.
sorry but I need a help : what can i do to solve the problem ?
Told once:
Quote:Probably a configuration quirk with your server. Appears as if the "glob" function is not correctly returning an array.
Told twice
Quote:Seriously. I have told you that the PHP "glob" function is not working correctly on the failing site.
By the third time of course I get a little frustrated
Quote:fix the PHP "glob" function so it works!
Hi guys, sorry for my multiple questions and not having correctly read your answers !
you are totatly right, there is a problem with glob() : the glob() function is no longer operational to French ISP Free, due to a security problem.
No patch is currently available to correct this flaw, the solution adopted by the provider is to disable the glob() function.
Only problem with that is that web applications that support this function may not operate, ZenPhoto in my case...
To understand, follow the links:
http://bugs.php.net/bug.php?id=28932
http://seclists.org/fulldisclosure/2005/Sep/1
After checking the code, zp-core/zp-extensions/tiny_mce.php is the only place in all the code zenphoto who use glob() function.
Is it possible to modify the source code to avoid zenphoto to use glob() function ?
I noticed the code often uses the function safe_glob, which is not a standard php function.
can I modify the code glob() with safe_glob()?
thanks in advance for your help
Yes, you can substitute safe_glob() for glob().
Pitty that your providers have become so draconian. There is really nothing "dangerous" of glob() and disabling it only makes things run slower as all of what it does must be PHP coded rather than in native C--That is what safe_glob() does if glob() is not functional.
in \zp-core\zp-extensions\tiny_mce.php, I have substitute safe_glob() for glob().
with that Tiny_MCE works well.
can you change that in a future realese ?
maybe a news on this topic (how to change with the current version 1.3.1.2) ? they are maybe a lot of providers that have disabled the function...
thank you for your patience and your help
and thank you for all your work on zenphoto: it is really a great tool