vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - vLaTeX - Math parsing with LaTeX (https://vborg.vbsupport.ru/showthread.php?t=230589)

fritz_0815 07-15-2010 05:20 PM

First of all sorry for my bad english.
Since the version 4.05 I get shown on the CMS site following error:

Quote:

Warnung: file_get_contents(.depth) [function.file-get-contents]: failed to open stream: No such file or directory in [path]/vlatex/functions_vlatex.php (Zeile 57)
In the forum everything works great.
What can be or where it goes wrong


Gr??e aus Germany :)

Pod 07-15-2010 07:40 PM

Quote:

Originally Posted by fritz_0815 (Post 2069593)
First of all sorry for my bad english.
Since the version 4.05 I get shown on the CMS site following error:


In the forum everything works great.
What can be or where it goes wrong


Gr??e aus Germany :)

Please, click install to get support!

I'll take a look into that. Do you have the forums in a subdirectory of the CMS, or something like that?

fritz_0815 07-16-2010 04:24 PM

In the like directory !
The error was not in 4.04 Version of vbulletin

Ps:
I have click install this great Mod :)

Pod 07-16-2010 04:53 PM

Quote:

Originally Posted by fritz_0815 (Post 2070189)
In the like directory !
The error was not in 4.04 Version of vbulletin

Ps:
I have click install this great Mod :)

Sorry, but I cannot reproduce that problem in my vb405 test installation. Would you let me see your site? (send the link in pm if you don't want to do so publicly).

fritz_0815 07-17-2010 06:38 PM

1 Attachment(s)
Hallo

The error occurs only in CMS, but not always
Here is a screenshot and the address of the Forum
Would be great if you could find the error

Greetings from Germany

http://www.hausaufgaben-forum.net/content/

Pod 07-17-2010 09:26 PM

Quote:

Originally Posted by fritz_0815 (Post 2070767)
Hallo

The error occurs only in CMS, but not always
Here is a screenshot and the address of the Forum
Would be great if you could find the error

Greetings from Germany

http://www.hausaufgaben-forum.net/content/

Thanks for the image and the link.

I believe that the problem is caused because your widget called "Neuste Beitr?ge" (whatever that means :p) is trying to preview a post that contains a formula, the preview is stripped to a number of characters, so the code it contains becomes invalid LaTeX, causing the error. That's why it only happens in the CMS, it is the only part of vb that previews portions of posts.

As a temporary fix, please try this (untested, but should work): create a file called ".cache" (without the quotes, note there's a point in the beginning) and upload it to http://www.hausaufgaben-forum.net/vlatex/pics/.cache

This won't prevent the latex error in the widget, but at least should get rid of the php error in your header.

I've already started to work in the next release (that will at least include a quick-menu with common latex commands below the editor, among other things). I'll try to include a permanent fix for this problem in this new version.

fritz_0815 07-18-2010 12:51 PM

Quote:

As a temporary fix, please try this (untested, but should work): create a file called ".cache" (without the quotes, note there's a point in the beginning) and upload it to
This does not work with the tip. The error is to continue to see.
I'd be happy, that would see the error no longer in the CMS
Did you have another idea?

Pod 07-18-2010 02:10 PM

Quote:

Originally Posted by fritz_0815 (Post 2071062)
This does not work with the tip. The error is to continue to see.
I'd be happy, that would see the error no longer in the CMS
Did you have another idea?


Open ./vlatex/functions_vlatex.php. Around the line 57 find

PHP Code:

$depth_raw file_get_contents(substr_replace($url'.depth', -4)); 

Replace it with

PHP Code:

    $depth_file substr_replace($url'.depth', -4);
    if (
file_exists($depth_file)) $depth_raw file_get_contents($depth_file); 

Next release of the mod will include this fix (among other things).

fritz_0815 07-19-2010 04:36 PM

Runs perfect now
Thank you for your help :)

Pod 07-20-2010 12:02 AM

1 Attachment(s)
A teaser of the menu with common used commands that will be available with the next version of this mod (to be released in a few days).

Of course, you (the admin) can customize the commands displayed.


All times are GMT. The time now is 03:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01299 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete