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 ?
Comments
- a beta test one (recently migrated with 1.3.1.2) : http://vincent.bourganel.free.fr/zenphotoNB/
- a production one (actually with ZP 1.2.9 but I'm working on migration) : http://vincent.bourganel.free.fr/zenphoto/
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 ?
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?
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.
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 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 ?
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
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.
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