ZenphotoCMS Forum
unable to edit theme scripts - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: unable to edit theme scripts (/thread-13434.html)



unable to edit theme scripts - RichardB - 25-07-2020

Zenphoto version 1.5.7 (Official build)
Current locale setting: en_US.UTF8
Server software: Apache
PHP version: 7.3.20
Graphics support: PHP GD library bundled (2.1.0 compatible)
supporting: gif, jpg, jpeg, png, wbmp
PHP memory limit: 1024M (Note: Your server might allocate less!)
MySQLi version: 5.6.47

In Zenphoto installations on a particular website on this server I am unable to edit the theme scripts.
I have tried more than one installation in this web site - same result:

I can click on edit and a new window opens but it is blank

On another website on this same server I do not have the same problem.

Any suggestions please?

I am baffled,
Richard




unable to edit theme scripts - acrylian - 25-07-2020

You are probably referring to the theme editor? You need full admin rights to edit them. Otherwise blank window means some serious error mostly or file/folder permissions mismatcht. Please review your logs.

I really recommend to edit themes files on a local server setup using a proper code editor instead.




unable to edit theme scripts - RichardB - 25-07-2020

Thank you. Yes, the theme editor.

the debug.log gives this error:

EXCEPTION (0): Too few arguments to function isTextFile(), 1 passed in .../zp-core/admin-themes-editor.php on line 45 and exactly 2 expected in .../zp-core/admin-themes-editor.php on line 23

which appears to be this line:

function isTextFile($file, $ok_extensions) {

?
Richard




unable to edit theme scripts - acrylian - 25-07-2020

I think that is fixed in the support build/1.5.8b already.




unable to edit theme scripts - RichardB - 25-07-2020

Yes - it is!

Thank you,
Richard




unable to edit theme scripts - Sunville - 13-11-2020

I have the same problem, how can I fix it?
I have Zenphoto version 1.5.7




unable to edit theme scripts - acrylian - 13-11-2020

I think that is fixed in the support build/1.5.8b already.




unable to edit theme scripts - Sunville - 13-11-2020

where can I find this?




unable to edit theme scripts - acrylian - 13-11-2020

As said on the (unnecessary) ticket right on our home page.




unable to edit theme scripts - Eli15 - 11-03-2021

?? sorry,
I don't understand.
Why are you hiding the link? A simple link to "1.5.8b".
The error is still in the offered "current"(?) 1.5.7.

Or any hint that something is wrong in 1.5.7.

Do we have to read the whole page?
Even a 1.5.8b search doesn't bring up a link.
that doesn't suit you and the CMS. :(
best regards




unable to edit theme scripts - fretzl - 11-03-2021

It's this link on the homepage: Support build (GitHub master)




unable to edit theme scripts - acrylian - 11-03-2021

Even a 1.5.8b search doesn't bring up a link.

1.5.8b is apparently not a release yet therefore it is not listed on the site yet. Btw, it is 1.5.8RC by now. The support build is explained on the installation and updating page.




unable to edit theme scripts - Eli15 - 12-03-2021

vielen Dank für die schnellen Antworten und Hilfe!

es klappt.

Grüße, eli




unable to edit theme scripts - acrylian - 12-03-2021

Super. The theme editor is just a convenience tool for quick edit. More extensive changes are better done via a proper text editor or development tool and best on a staging site or local enviroment.




unable to edit theme scripts - Eli15 - 12-03-2021

yes, I use it just for small edits and the site is for friends and disfunctionallity doesn't look good. Thanks