Loading...
 
Skip to main content

Features / Usability


Any Ideas Appreciated! Cannot Preview or Modify Pages

posts: 13 United States

I'm really desperate to figure this out, so I'd be grateful for any feedback at all — even if it's just thoughts about where to look or what to tell the sys admin. Even though I have checked everything I can think of, I'm not a Linux expert by any means, so I could easily have missed something that seems obvious.

Problem Description:
Everything was working fine, but now for no obvious reason, nobody — not even the admin — can preview or edit any page (wiki pages, articles, etc.)

Whenever we try to edit a page, on "save" or "preview", we get a server error that says "You do not have permission to access /tw/tiki-editpage.php on this server."

The installation of TikiWiki was done through Fantastico. I don't have root access to the server, only through cPanel. The URL of the site I'm having trouble with is http://www.i4hd.com/tw/tiki-view_articles.php

Someone told me to try setting "chmod 777 on the '.../tw/templates_c/en' and other directories" — but will this create security or other problems? Is there anyplace I can go to see what the permissions are supposed to be?

Thank you,

Bob
LaunchHQ.com

posts: 13 United States

Update:
😡 Sorry (I'm new at this) — I probably should have mentioned in the original post that the installation of TikiWiki was done through Fantastico. I don't have root access to the server, only through cPanel. I also should have given the URL of the site I'm having trouble with: http://www.i4hd.com/tw/tiki-view_articles.php

Thank you,

Bob
LaunchHQ.com


posts: 1092


> Whenever we try to edit a page, on "save" or "preview", we get a server error that says "You do not have permission to access /tw/tiki-editpage.php on this server."
If when you type .../tw/tiki-editpage.php , you have this problem, it seems it is more a problem of installation. DId you check the file exists and is readable by the server?

sylvie

posts: 13 United States

> If when you type .../tw/tiki-editpage.php , you have this problem, it seems it is more a problem of installation. DId you check the file exists and is readable by the server?

Thank you for your reply sylvie. That is the strange thing: I CAN type .../tw/tiki-editpage.php and it comes right up with no problem. In fact, when I click on the "edit" button for any page, the edit screen even comes up (and this is the same PHP file that is giving the error). But when I try to preview or save the page, that is when the error appears!

Someone told me to try setting "chmod 777 on the '.../tw/templates_c/en' and other directories" — but is this secure? Is there anyplace I can go to see what the permissions are supposed to be?

Thanks!
Bob


posts: 1092
Did you check your access log?
posts: 13 United States

> Did you check your access log?

No, but that's an excellent suggestion! I copied them here — it looks like a temp directory is not being created, but I'm not sure why or what to do about it...

---------
Error Log (in reverse order)
---------
Mon Mar 13 15:28:12 2006 error PHP Warning: _smarty_include(): Failed opening 'templates_c//en/%%-77/%%-77858809/tiki-admin_external_wikis.tpl.php' for inclusion (include_path='lib/pear:lib/adodb:lib/pear:lib:.:/usr/lib/php:/usr/local/lib/php') in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1943

Mon Mar 13 15:28:12 2006 error PHP Warning: _smarty_include(templates_c//en/%%-77/%%-77858809/tiki-admin_external_wikis.tpl.php): failed to open stream: No such file or directory in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1943

Mon Mar 13 15:28:12 2006 error PHP Warning: touch(): Unable to create file templates_c//en/%%-77/%%-77858809/tiki-admin_external_wikis.tpl.php because No such file or directory in /home3/i4hd/public_html/tw/lib/smarty/core/core.write_compiled_resource.php on line 31

Mon Mar 13 15:28:12 2006 error PHP Warning: Smarty error: problem writing temporary file 'templates_c//en/%%-77/%%-77858809/4415d5f2900ea' in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1150

Mon Mar 13 15:28:12 2006 error PHP Warning: Smarty error: problem creating directory '/home3/i4hd/public_html/tw/templates_c/en/%%-77' in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1150

Mon Mar 13 13:53:45 2006 alert client 24.63.202.135 /home3/i4hd/public_html/tw/db/.htaccess: Regex could not be compiled

---------
---------
Access Log
---------
|
|
|

/tw/tiki-edit_article.php?articleId=38
Http Code: 200 Date: Mar 13 15:12:39 Http Version: HTTP/1.1 Size in Bytes: 8463
Referer: http://www.i4hd.com/tw/tiki-read_article.php?articleId=38

/tw/lib/overlib.js
Http Code: 200 Date: Mar 13 15:12:40 Http Version: HTTP/1.1 Size in Bytes: 43544
Referer: http://www.i4hd.com/tw/tiki-edit_article.php?articleId=38

|
|
|

/tw/img/icons2/reduceH.gif
Http Code: 200 Date: Mar 13 15:12:40 Http Version: HTTP/1.1 Size in Bytes: 70
Referer: http://www.i4hd.com/tw/tiki-edit_article.php?articleId=38

/tw/tiki-edit_article.php
Http Code: 403 Date: Mar 13 15:13:00 Http Version: HTTP/1.1 Size in Bytes: 3126
Referer: http://www.i4hd.com/tw/tiki-edit_article.php?articleId=38

/tw/question_warning.gif
Http Code: 404 Date: Mar 13 15:13:00 Http Version: HTTP/1.1 Size in Bytes: 3098
Referer: http://www.i4hd.com/tw/tiki-edit_article.php

|
|
|


posts: 1092

> > Did you check your access log?
>
> No, but that's an excellent suggestion! I copied them here — it looks like a temp directory is not being created, but I'm not sure why or what to do about it...
>
> ---------
> Error Log (in reverse order)
> ---------
> Mon Mar 13 15:28:12 2006 error PHP Warning: _smarty_include(): Failed opening 'templates_c//en/%%-77/%%-77858809/tiki-admin_external_wikis.tpl.php' for inclusion (include_path='lib/pear:lib/adodb:lib/pear:lib:.:/usr/lib/php:/usr/local/lib/php') in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1943
To solve this, clear you cache admin->system->templates_c

posts: 13 United States

> > Mon Mar 13 15:28:12 2006 error PHP Warning: _smarty_include(): Failed opening 'templates_c//en/%%-77/%%-77858809/tiki-admin_external_wikis.tpl.php' for inclusion (include_path='lib/pear:lib/adodb:lib/pear:lib:.:/usr/lib/php:/usr/local/lib/php') in /home3/i4hd/public_html/tw/lib/smarty/Smarty.class.php on line 1943

> To solve this, clear you cache admin->system->templates_c

Do you mean that I should delete all the directories under /templates_c/en/?

posts: 1092


> Do you mean that I should delete all the directories under /templates_c/en/?
yes
or use admin->system admin-> clear templates_c

posts: 13 United States

> Did you check your access log?

❓❓❓ Today we are getting a different error message in the log file than yesterday, but the exact same problem and the exact same results as before — very strange...

Tue Mar 14 15:47:25 2006 error PHP Notice: Only variable references should be returned by reference in /home3/i4hd/public_html/tw/lib/search/refresh-functions.php on line 238


(I did try to chmod 777 on .../templates/en/ using cPanel, but when I check it, it is still 751)

Bob
LaunchHQ.com

posts: 1092

> > Did you check your access log?
>
> ❓❓❓ Today we are getting a different error message in the log file than yesterday, but the exact same problem and the exact same results as before — very strange...
>

>
Tue Mar 14 15:47:25 2006 error PHP Notice: Only variable references should be returned by reference in /home3/i4hd/public_html/tw/lib/search/refresh-functions.php on line 238

This is not an important error. It is depending on your server configuration
Look at a postr I did one hourn ago to solve the problem

posts: 13 United States

> Look at a postr I did one hourn ago to solve the problem

Sorry — I looked through all the forums (I guess you can't see all posts by a particular user?) and could not find the post that you're referring to. Can you tell me where I can find it? Thanks!


posts: 1092
If I were you, I will chage hosting 😉
posts: 13 United States

> If I were you, I will chage hosting 😉

Yes, I think you are right sylvie! I am actually in the process of doing that...


posts: 13 United States

Well, someone at our hosting company was finally able to get this working again by using the questionable "chmod 777" approach — but at least it's working!

Thank you sylvie for all of your suggestions & help with this!!

I will continue to work at understanding what happened here (and at finding a more stable hosting solution). So I would still be interested in any comments anyone might have on the topic.

Bob
LaunchHQ.com


posts: 103 Wales
I have this problem too (running tikiwik 3.1) - did you find a solution? Which files xactly did your host change to "777"?