JoomlaPlug!

JoomlaCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
JoomlaCloner - Joomla backup and restore

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
Re:joomla causes php script to show as full web pa (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:joomla causes php script to show as full web pa
#2172
hibbs02 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
joomla causes php script to show as full web page! 1 Year, 10 Months ago  
HOwdy,

I've been going round and round with this thing. I'm running a joomla website,obviously, and I can't even get to the php script manually. It just says that I can't access it directly.

So, I tried to access as a web command through the cron and the log said that it couldn't get it either using both lynx and wget.

I set up a SSH command and it was finally able to access it but from the log it got a full blown joomla page rather than executing! I used

php absolutepath/script.php set as SSH. Any ideas how to get around the Joomla! block on triggering it with a web command would be greatly appreciated as well.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2173
admin (Admin)
Admin
Posts: 2502
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:joomla causes php script to show as full web pa 1 Year, 10 Months ago  
Hi there! Could you post here a screenshot of you cron edit page?

And if possible could you attach also the debug message you got?

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2174
hibbs02 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:joomla causes php script to show as full web pa 1 Year, 10 Months ago  




Content-type: text/html
Set-Cookie: 54280a8a2d23998988de5def5016611f=-; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 07 Mar 2007 17:14:43 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache

<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;>
<head>
<title>iluvtek.com - Home</title>
<meta name=&quot;description&quot; content=&quot;Joomla - the dynamic

SNIP

</body>
</html>


<!-- 1173287683 -->


LOCAL CRON DEBUG:


<b>Working on cron schedule: * * * * *</b>
Got day 1 for START of 1, 2007
Cron was due to run earlier this year
Cron has already been due to run this month (03)
Getting days array
Getting days for 03
Days in 03, 2007: 31
Array: 0=>1, 1=>2, 2=>3, 3=>4, 4=>5, 5=>6, 6=>7, 7=>8, 8=>9, 9=>10, 10=>11, 11=>12, 12=>13, 13=>14, 14=>15, 15=>16, 16=>17, 17=>18, 18=>19, 19=>20, 20=>21, 21=>22, 22=>23, 23=>24, 24=>25, 25=>26, 26=>27, 27=>28, 28=>29, 29=>30, 30=>31,
Cron has already been due to run today
LAST RAN: 10:13 on 07/03/2007
Parsing * * * * * taken 0.000465 seconds
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2175
admin (Admin)
Admin
Posts: 2502
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:joomla causes php script to show as full web pa 1 Year, 10 Months ago  
The cron seems to be working ok, however the problem seems to be from the php script you are running, what exactly is it supposed to send back when run?

As a test, open a browser page and try to run the script as http://mydomain.com/components/.../script.php and see what out put you get!

Try also to run this ssh command:

&quot;lynx http://mydomain.com/components/.../script.php&quot;

or

&quot;links http://mydomain.com/components/.../script.php&quot;

and see what is the result!


Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2176
hibbs02 (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:joomla causes php script to show as full web pa 1 Year, 10 Months ago  
http://www.iluvtek.com/components/com_jd-wp/wp-content/update-feeds.php
trying to go there says,&quot;Direct Access to this location is not allowed.&quot; or a simple web command would work fine. I looked that up and it said it was a standard Joomla! feature and I don't know how to shut if off for this page.

Here is the full entry I'm using since it is cut off:
php /home/content/h/i/b/hibbs02tek/html/components/com_jd-wp/wp-content/update-feeds.php

I will note that I have this script set up on a pure wordpress blog and it can update fine with phpjobscheduler or visit to the script with your browser.

Thanks for your support, i really appreciate it.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2177
admin (Admin)
Admin
Posts: 2502
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:joomla causes php script to show as full web pa 1 Year, 10 Months ago  
To take out the &quot;Direct Access to this location is not allowed.&quot; message you need to edit this page http://www.iluvtek.com/components/com_jd-wp/wp-content/update-feeds.php

At the top of it you will find a code like &quot;die( 'Restricted access' );&quot; try and comment that line along with the line before it(with defined( '_VALID_MOS' ) )

Paste that code here if you still have problems! Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

Download Joomla

All rights reserved to JoomlaPlug.com ©2006-2009!
Site powered by Joomla!