|
[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
|
Posted 15 years, 2 months ago
by y2ksw
|
|
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
|
Posted 15 years, 6 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 6 months ago
by y2ksw
|
|
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
|
Posted 15 years, 6 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
Diese E-Mail-Adresse ist gegen Spambots geschützt! Du musst JavaScript aktivieren, damit Du sie sehen kannst.
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
Well, it's not 100% true. I achieved what I wanted in several steps:
- Insert articles in Joomla via script (saves also the import ID)
- Insert old URL into article alias
- Run a spider (JoomSEF creates new links into database)
- 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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
The file cache seems to work, no crashes to report.
|
Critical Bug Report
|
Posted 15 years, 7 months ago
by y2ksw
|
|
No matter what, it continues to crash. Now I have switched to file cache.
|
Critical Bug Report
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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
|
Posted 15 years, 7 months ago
by y2ksw
|
|
[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
|
Posted 15 years, 7 months ago
by y2ksw
|
|
Seems to happen only with cache off.
|
Critical Bug Report
|
Posted 15 years, 7 months ago
by y2ksw
|
|
[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
|
Posted 15 years, 7 months ago
by y2ksw
|
|
Ok I got it ... it's not possible. ;)
|
Generating redirect ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
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 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
|
|
Custom redirect 301 ...
|
Posted 15 years, 7 months ago
by y2ksw
|
More |