Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for y2ksw

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 06:28
  • Posts: 20
  • Profile Views: 4384
  • About Me: Joomla: latest; JoomSEF: latest
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
[Thu Feb 18 16:40:44 2010] [error] [client 79.27.105.179] PHP Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /vhosts/*.com/httpdocs/cache/joomsef.cache on line 1730, referer: forum.*.com/showthread.php?t=49888
[Thu Feb 18 16:40:44 2010] [error] [client 79.27.105.179] PHP Parse error: syntax error, unexpected $end, expecting ']' in /vhosts/*.com/httpdocs/cache/joomsef.cache on line 1730, referer: forum.*.com/showthread.php?t=49888

Maybe this report will help you to find the problem, which is related to missing or erratic escaping of some characters.

Of course, the latest version is installed.
Critical Bug Report
Category: JoomSEF 3
emo
Sorry, but you missed I was using file caching and the problem still persists.

Right now I'm forced to use no cache in order to get reliably JoomSEF running.

I understand you will not make special patches, but if the problem is in your code (and it is denoted as that from PHP error handling), I will complain to you whenever one appears.

Most probably you have somewhere an uninitialized string which however is required.

If eAccelerator or even file caching would really be buggy, a wild roar would shake the web and really nobody would not have heared it. All I was asking is to check once again that specific object in order to be 200% sure it isn't your code causing a problem.

I am a coder myself and know it is terribly easy to miss the point. And specificly when I know about a problem and also other people tell me about and try to help me to trace it down, I do my best efford to get it fixed. Because that is what makes the difference.
Critical Bug Report
Category: JoomSEF 3
emo
A certain amount of strange requests are caused by hackers who try to break into systems with a reasonable amount of traffic.

Other strange requests may come from old sites which were formatted differently and still contained in caches somewhere.

This kind of 404 pages is annoying but generally harmless. It would be nice if we could sign those URL's to permanently hide them from the logs ;)
Strange 404's have m ...
Category: JoomSEF 3
emo
We still have this problem also with cache on file, but much less. Can you please schedule to check that particular object if it isn't NULL or contains NULL entries?

Thanks.
Critical Bug Report
Category: JoomSEF 3
emo
jen wrote:
Trying to figure out why I have duplicate SEF's in the DB. Says I have 58K sef url's and I dont even have a fraction of that on the whole site....

I also have 9000 crawl errored url's that is showing up in my webmaster tools in google. I don't know whats going on. Can someone possibly help?

I would suggest to purge the sef urls in order they are rebuilt. It happened to me to get a lot of invalid sef urls due to changing article titles and moving articles from one place to another without much care. After purging however, everything worked fine. Take care not to purge your custom and 301 redirects though ;)
duplicated sef's in ...
Category: JoomSEF 3
emo
I use this code for creating a meta description:
// Read articles
$SQL = "SELECT id, CONCAT(introtext, `fulltext`) AS metatext
FROM jos_content
WHERE introtext>''
AND metadesc=''";
$rss = $db->query_read($SQL);
while($rs = $db->fetch($rss))
{
$metadesc = strip_tags($rs['metatext']);
//echo $rs['id'] . htmlspecialchars($metadesc); die;
while(strlen($metadesc) > 255)
{
$i = strrpos(substr($metadesc, 0, -1), '.');
if($i === false)
{
break;
}
$metadesc = substr($metadesc, 0, $i + 1);
}
$metadesc = $db->escape_string($metadesc);

// Write record
$SQL = "UPDATE jos_content
SET metadesc='$metadesc'
WHERE id=$rs[id]";
//echo htmlspecialchars($SQL); die;
$db->query_write($SQL);
if($db->errno)
{
echo $db->error;
die;
}

echo "Meta Description Article: $rs[id]<br />" . str_repeat(' ', 255);
flush();
}
Generate auto meta d ...
Category: JoomSEF 3
emo
Ref.: www.artio.net/support-forums/joomsef-pay...erating-redirect-301

I would like to have a button/function where I could generate all URL's of all content I have, as if I had visited all pages. Currently, I need to spider my site to get all URL's registered into the database (sefurls).

Having this feature available, I could manually add 301 redirects or change the URL's before they actually get hit. It's particularily useful for sites which have been migrated to Joomla and/or JoomSEF.

I see this function as: Rebuild SEF URL's ;)
Generate SEF URL's o ...
Category: Extension Requests
emo
This e-mail address is being protected from spambots. You need JavaScript enabled to view it wrote:
hello is it important to ad .html at the and of an url ?


thanks

No. For SEO reasons, a page without suffix/extension is slightly better indexed.
.html at the end of ...
Category: JoomSEF 3
emo
Well, it's not 100% true. I achieved what I wanted in several steps:
  1. Insert articles in Joomla via script (saves also the import ID)
  2. Insert old URL into article alias
  3. Run a spider (JoomSEF creates new links into database)
  4. Run the following code


 
$SQL = "SELECT id, catid, import_id, `alias`
FROM jos_content
WHERE import_id>0
AND `alias`>''"
;
$rss = $db->query_read($SQL);
while($rs = $db->fetch($rss))
{
$SQL = "DELETE
FROM jos_sefmoved
WHERE old='$rs[alias]'"
;
$db->query_write($SQL);
$SQL = "SELECT sefurl
FROM jos_sefurls
WHERE origurl='index.php?option=com_content&catid=$rs[catid]&id=$rs[id]&view=article'"
;
$rs2 = $db->query_first($SQL);
if(!$rs2)
{
continue;
}
$SQL = "INSERT INTO jos_sefmoved (
old,
new
) VALUES (
'$rs[alias]',
'$rs2[sefurl]'
)"
;
$db->query_write($SQL);
}
$db->free($rss);
 


Done :)

So now if somebody types the old URL, they get the new location error free and without messing with the .htaccess file, which would be anyway very unhandy, given thousands of articles.
Generating redirect ...
Category: JoomSEF 3
emo
The file cache seems to work, no crashes to report.
Critical Bug Report
Category: JoomSEF 3
emo
No matter what, it continues to crash. Now I have switched to file cache.
Critical Bug Report
Category: JoomSEF 3
emo
Changed again, since the previous patch did not always work.

function _uriToUrl($uri, $removeVariables = null)
{
// Create new JURI object
// y2ksw
//$url = new JURI($uri->toString());
try
{
$url = new JURI($uri->toString());
}
catch(Exception $e)
{
$url = new JURI('');
}
Critical Bug Report
Category: JoomSEF 3
emo
function _uriToUrl($uri, $removeVariables = null)
{
// Create new JURI object
// y2ksw
if($uri)
{
$url = new JURI($uri->toString());
}
else
{
$url = new JURI('');
}


I patched this here in order to avoid a crash when $uri is null.

I have no idea of the impact of this patch, but my priority is to keep Apache alive ;)
Critical Bug Report
Category: JoomSEF 3
emo
[1144] EACCELERATOR: PHP crashed on opline 5 of (null)() at D:\vhosts\domain.tld\httpdocs\components\com_sef\joomsef.php:1616

[Sat Sep 12 11:34:34 2009] [crit] Parent: child process exited with status 3 -- Aborting.

Sorry, it does happen with cache enabled, too.
Critical Bug Report
Category: JoomSEF 3
emo
Seems to happen only with cache off.
Critical Bug Report
Category: JoomSEF 3
emo
[5816] EACCELERATOR: PHP crashed on opline 5 of (null)() at D:\vhosts\domain.tld\httpdocs\components\com_sef\joomsef.php:1616

[Sat Sep 12 11:00:00 2009] [crit] Parent: child process exited with status 3 -- Aborting.


I got this error while browsing the menues quickly and with no criteria (users at phone do this, for example).

I have eAccelerator enabled, but the cache (60 minutes) disabled.

I don't know if the same applies also for the cache on. I will try this now.

This error is critical since it causes Apache to crash.
Critical Bug Report
Category: JoomSEF 3
emo
Ok I got it ... it's not possible. ;)
Generating redirect ...
Category: JoomSEF 3
emo
I need to generate manually redirects (301).

After migration of a portal to Joomla, I have thousands of old URL's to insert in the sefmoved table. The problem I encounter are the missing entries in the sefurls table, since those seem to be inserted on the fly.

My initial idea was to"click" the pages by using the Joomla URL, e.g.:

$url = "index.php?option=com_content&catid=$rs[catid]&id=$rs[id]&view=article";

with cURL, but this seems not to insert the URL. If it would work, it would be an excellent solution in order to avoid "understanding" JoomSEF. With the help of the new entries I would then have filled properly the sefmoved table.


Question:
- How to I create a new entry in the sefurls table from a PHP script without getting mad?

Order No. 5591
Generating redirect ...
Category: JoomSEF 3
emo
jan wrote:
We plan to add .htaccess file editing possibility to JoomSEF, including specifying 301 redirects with no limitations, but that one is still on TODO list.

That would be great :)

Thanks anyway
Custom redirect 301 ...
Category: JoomSEF 3
emo
I have created a custom redirect 301:

Moved from URL: ext/test_link
Moved to URL: www.realrealms.com/

When I call:

www.testhost.com/ext/test_link

It generates the url:

www.testhost.com/http://www.realrealms.com/

Is there any way to make it accept just the URL I have inserted? I would like to use the 301 or any other redirect system and thus remove all .htaccess redirects of this kind.
Order No. 5591
Custom redirect 301 ...
Category: JoomSEF 3
More
User Login Empty