• after install i have only message:

    Call to undefined function hash() in vendor/twig/Environment.php line 273

    public function getTemplateClass($name, $index = null)
    {
    $suffix = null === $index ? ” : ‘_’.$index;
    $cls = $name.$suffix;
    if (isset($this->templateClasses[$cls])) {
    return $this->templateClasses[$cls];
    }

    return $this->templateClasses[$cls] = $this->templateClassPrefix.hash(‘sha256’, $this->getLoader()->getCacheKey($name)).$suffix;
    }

    https://ww.wp.xz.cn/plugins/all-in-one-event-calendar/

Viewing 15 replies - 1 through 15 (of 16 total)
  • try to clear the folder “cache” under the plugin root by deleting the “Twig” folder inside it

    wp-content/all-in-one-event-calendar/cache/twig

    Make sure “cache” is writable to regenerate twig cache

    Thinking better, probably your php has been compiled without hash support we are working on a workaround

    What PHP version are you using?

    Thread Starter Golemming

    (@golemming)

    first suggestion did not worked.

    php5.3

    Enabled “hash” in hosting php options – message was gone, but now i got another one:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 306052 bytes) in /wp-admin/includes/admin.php on line 50

    but in file i couldn’t find any reference to memory

    You have to turn up maximum system memory it seems. Do you have the message in all pages?It’s strange because version 2 is much lower on resource usage.

    Thread Starter Golemming

    (@golemming)

    no, message appear only in admin panel.

    Thread Starter Golemming

    (@golemming)

    i think i will leave it installed for a night and look tomorrow on mem usage statistic.

    Thread Starter Golemming

    (@golemming)

    ok, memory load didn’t increased after i installed your plugin. Maybe i should delete all ai1ec brances in sql database?

    Thread Starter Golemming

    (@golemming)

    well, problem was in memory limit. increased it to 64 mb – all seems working.

    Only problem in Calendar Feeds:

    We couldn’t find a valid transport to fetch the calendar data. You should set allow_url_fopen in php.ini as suggested in this article

    problem exist even when i manually enable allow_url_fopen in hosting admin panel

    Thread Starter Golemming

    (@golemming)

    it’s getting ridiculous πŸ™‚ uploaded *.isc file from google drive instead from my site itself, works so far

    Last question: how make Excerpt in widget show more lines than two?

    About the memory, can you make some profiling and tell us how much memory is used by our plugin?We should be very low on pages which are not our pages. About the error, that’s an old error message and it’s related to something else probably. Can you give me the feed?
    About the excerpt, this is not configurable as of now you would have to touch php code.

    Thread Starter Golemming

    (@golemming)

    This is daily graph from my hoster

    <img src=”http://i57.fastpic.ru/big/2014/0410/1f/42fbd2da586af7593b068de55c3b071f.gif&#8221; border=1>

    i have installed your plugin on 14:50 approx. As you see load almost the same. Old version caused to easily brake 200 mb, so now it’s much better. If you know plugin that could give better info pleasΡƒ name it – i will give you feedback πŸ™‚

    link on *.ics but allow_url_fopen disabled now as usual

    please point me on exact file, i will make changes πŸ™‚

    Hi,

    i imported 18 events without problem from that feed as you can see in the image http://take.ms/3Q9vV

    if you want to check what’s happening to you you must go to folder lib/calendar-feeds and open file ics.php. On lin 69 you’ll find

    $response = wp_remote_get( $feed->feed_url, array( 'sslverify' => false, 'timeout' => 120 ) );

    Check what $response is.

    As for the excerpt check in folder app/view/event the file post.php, function trim_excerpt. As you can see there is a filter you can hook into

    apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );

    you might want to use that

    Thread Starter Golemming

    (@golemming)

    i have same:
    $response = wp_remote_get( $feed->feed_url, array( ‘sslverify’ => false, ‘timeout’ => 120 ) );

    no, that is trim of text itself, i need one that cuts title of event

    Ok but that line is called every time you update the feed. What is the value of $response when you try to update the feed?

    Sorry for the other thing, it should under lib/twig file ai1ec-extensions.php function truncate()

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘Version 2.0.4 breaks site’ is closed to new replies.