Member
Member
vincent3569   28-09-2010, 22:01
#1

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 ?

Member
Member
sbillard   29-09-2010, 01:08
#2

Probably a configuration quirk with your server. Appears as if the "glob" function is not correctly returning an array.

Member
Member
vincent3569   29-09-2010, 11:52
#3

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 ?

Member
Member
sbillard   29-09-2010, 16:31
#4

So I guess you need to find the difference between those two sites.

Member
Member
vincent3569   29-09-2010, 19:02
#5

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?

Administrator
Administrator
acrylian   29-09-2010, 19:07
#6

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.

Member
Member
sbillard   29-09-2010, 20:05
#7

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.

Member
Member
vincent3569   29-09-2010, 20:50
#8

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 ?

Member
Member
sbillard   29-09-2010, 22:53
#9

fix the PHP "glob" function so it works! Do I have to beat this into your head?

Member
Member
gjr   30-09-2010, 02:56
#10

wow...

Member
Member
sbillard   30-09-2010, 03:28
#11

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!

Administrator
Administrator
acrylian   30-09-2010, 08:44
#12

So in other words, you probably best ask your host about that as this is a server setting.

Member
Member
vincent3569   30-09-2010, 21:07
#13

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

Member
Member
sbillard   30-09-2010, 21:15
#14

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.

Member
Member
vincent3569   30-09-2010, 22:24
#15

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

Member
Member
sbillard   30-09-2010, 23:09
#16

Will do. Thanks for the confirmation.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.